diff --git a/CHANGELOG.md b/CHANGELOG.md index d436738..afa517b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,10 @@ contract of every version is the same: each lane of each function equals any species of 128 bits or more. Every lane is bit-identical to `StrictMath.atan`, NaN payloads and signed zeros included. Lanes of magnitude `2^66` or more, the infinities and NaNs are finished per lane by `StrictMath.atan`. +- `VFdlibm.acos`, in the two forms `acos(x)` and `acos(x, live)`, over `DoubleVector` lanes of + any species of 128 bits or more. Every lane is bit-identical to `StrictMath.acos`, NaN payloads + and signed zeros included. Lanes of magnitude 1 or more and NaNs are finished per lane by + `StrictMath.acos`. ### Changed diff --git a/PLAN.md b/PLAN.md index 136646a..ac967e1 100644 --- a/PLAN.md +++ b/PLAN.md @@ -43,7 +43,8 @@ and expm1's `k == 0` lines, with two arms for its small range: the default arm i provisionally, until a benchmark host times them). `asin` is done too (`VFdlibm.asin`, from `e_asin.c`, with `sqrt` as the Vector API's `SQRT`, one arm, and the lanes of `|x| >= 1` finished per lane), and so is `atan` (`VFdlibm.atan`, from `s_atan.c`, five ranges through one division on -blended operands, the lanes from `2^66` up finished per lane). `log`, `log10` and +blended operands, the lanes from `2^66` up finished per lane), and so is `acos` +(`VFdlibm.acos`, from `e_acos.c`, built as asin is). `log`, `log10` and `log1p` are done too (`VFdlibm.log`, from `e_log.c`, `VFdlibm.log10`, from `e_log10.c`, which computes through log's common path, and `VFdlibm.log1p`, from `s_log1p.c`), and so is `expm1` (`VFdlibm.expm1`, from `s_expm1.c`, whose reduction is exp's). @@ -67,11 +68,11 @@ five are a later, optional set; the large-argument reduction of the trigonometri - published hard cases: inputs where the exact result lies very close to a rounding boundary, from Lefevre and Muller's worst-case tables (ARITH 15, 2001) and Lefevre's list of round-to-nearest hard cases, one resource per function under `src/test/resources/.../hard-cases/` (so far `exp`, - `expm1`, `log`, `log10`, `log1p`, `sinh`, `cosh`, `asin` and `atan`), loaded with + `expm1`, `log`, `log10`, `log1p`, `sinh`, `cosh`, `asin`, `atan` and `acos`), loaded with `Inputs.hardCases("")`. The inputs of Lefevre's list come out of `dev/testlibm-extract.py`, which rechecks each line with 400-digit arithmetic against exact - values it derives itself (`sinh`'s, `cosh`'s and `atan`'s files were written by it; it also - derives `asin` and `acos`, whose files come with their ports). A port that keeps fdlibm's + values it derives itself (`sinh`'s, `cosh`'s, `atan`'s, `asin`'s and `acos`'s files were + written by it). A port that keeps fdlibm's operations, or departs from them only where `PROOFS.md` proves the result equal, matches `StrictMath` on them by construction; they sit where a dropped correction term or a reassociated sum, an error far below one ulp, is most likely to change the returned double. @@ -88,13 +89,13 @@ five are a later, optional set; the large-argument reduction of the trigonometri -XX:MaxVectorSize=32`, 128 and 256 bits on every draw), on x86 with `-XX:MaxVectorSize=16` (all of it at 128 bits) and on Arm (128 bits). - **Nightly:** `.github/workflows/nightly.yml` sweeps every high word of exp, expm1, log, log10, - log1p, sinh, cosh and atan (asin is in `Nightly`'s table and not yet in the night's list) with - three low words each (every branch fdlibm decides on the high word) at every width but 128 bits - on x86, where a rotating 1/32 slice a night covers it in 32 nights, and at 128 bits on Arm every - night; it fuzzes from a fresh seed at every width, and runs every proof under both solvers; a - failure opens an issue labelled `nightly-failure` with the mismatching inputs, ready for a - `hard-cases` file (`SKILLS.md`), and a dispatch that plants a fault, to test that alert, opens - one labelled `nightly-fault-test`. + log1p, sinh, cosh and atan (asin and acos are in `Nightly`'s table and not yet in the night's + list) with three low words each (every branch fdlibm decides on the high word) at every width but + 128 bits on x86, where a rotating 1/32 slice a night covers it in 32 nights, and at 128 bits on + Arm every night; it fuzzes from a fresh seed at every width, and runs every proof under both + solvers; a failure opens an issue labelled `nightly-failure` with the mismatching inputs, ready + for a `hard-cases` file (`SKILLS.md`), and a dispatch that plants a fault, to test that alert, + opens one labelled `nightly-fault-test`. - **Masked forms:** a masked form is checked under seeded random masks, all-true and all-false; active lanes must equal `StrictMath` and inactive lanes must keep the input's raw bits (for a two-argument function, the first argument's). @@ -159,16 +160,15 @@ five are a later, optional set; the large-argument reduction of the trigonometri and 512 bits, the preferred species and `SPECIES_MAX`. `Log1pBenchmark` does the same for `log1p`, with a third arm that blends the rare paths only when a vector holds a rare lane; `Expm1Benchmark` has the same three arms for `expm1`, `SinhBenchmark` one for `sinh`, `CoshBenchmark` two for - `cosh`, `AsinBenchmark` one for `asin` and `AtanBenchmark` one for `atan`. Each of the nine has - rows at `SPECIES_MAX` (`*Max`), which the allocation check covers: the finish of `exp`, - `expm1`, `log`, `log10` and `log1p` boxed there on mixed data until its first eight lanes were - written out - (`bench/results/max-finish-laptop-2026-11-20.txt`, then + `cosh`, `AsinBenchmark` one for `asin`, `AtanBenchmark` one for `atan` and `AcosBenchmark` one for + `acos`. Each of the ten has rows at `SPECIES_MAX` (`*Max`), which the allocation check covers: the + finish of `exp`, `expm1`, `log`, `log10` and `log1p` boxed there on mixed data until its first + eight lanes were written out (`bench/results/max-finish-laptop-2026-11-20.txt`, then `bench/results/max-finish-alloc-free-laptop-2026-11-21.txt`, a laptop reading of allocation only); - no file reads the earlier finish of `sinh` or `cosh`, and none has an `asin` or an `atan` row, - whose finishes were written in the new shape from the start. `ExpKindsBench` runs exp's two arms - on one kind of rare input at a time (a NaN, an overflow, an underflow, a subnormal result), to - find which kind costs an arm its time on mixed data (#41); it is named apart so that a run of + no file reads the earlier finish of `sinh` or `cosh`, and none has an `asin`, `atan` or `acos` + row, whose finishes were written in the new shape from the start. `ExpKindsBench` runs exp's two + arms on one kind of rare input at a time (a NaN, an overflow, an underflow, a subnormal result), + to find which kind costs an arm its time on mixed data (#41); it is named apart so that a run of `ExpBenchmark` and the allocation check's default regex leave it out, as `CoshKindsBench`, which has cosh's small-range shares, is. A function's body is larger than C2 inlines by default, so a call from a loop passes boxed vectors; the benchmarks are also run with diff --git a/PROOFS.md b/PROOFS.md index 1c14f84..513a82d 100644 --- a/PROOFS.md +++ b/PROOFS.md @@ -1181,3 +1181,62 @@ way: moved by one word, the lanes of the word between give the same bits (0 of 2 changed, and the test pins that), so no test of results sees those two move, and they are not checked. That a move by more than one word is seen was not measured, except for the `0x3ff30000` one. + +## acos (`Acos.java`, from `e_acos.c`) + +e_acos.c reads `hx = __HI(x)` and `ix = hx&0x7fffffff` (lines 69-70). For `ix >= 0x3ff00000` it +returns `0.0` for exactly `1`, `pi+2.0*pio2_lo` for exactly `-1` and `(x-x)/(x-x)` above (71-76). +Below that, for `|x| < 0.5` (`ix < 0x3fe00000`, line 78) it returns `pio2_hi+pio2_lo` for `ix <= +0x3c600000` (79) and otherwise `pio2_hi - (x - (pio2_lo-x*r))` with `z = x*x`, `r = p/q` (80-84); +for `hx < 0` (`x <= -0.5`: the C's comment says `x < -0.5`, but `-0.5` takes this branch, line +85) with `z = (one+x)*0.5`, `s = sqrt(z)` and `r = p/q` it returns `pi - 2.0*(s+w)`, `w = +r*s-pio2_lo` (86-92); and otherwise (94-103, `x >= 0.5`: the C's comment says +`x > 0.5`, but `+0.5` takes this branch) with `z = +(one-x)*0.5`, `s = sqrt(z)`, `df` the root with its low word cleared and `c = (z-df*df)/(s+df)` +it returns `2.0*(df+w)`, `w = r*s+c`. The port computes the lines below `|x| = 1` in the C's +order, with no fused multiply-add and no reassociation, and **needs no lemma of its own** beyond +L13's blend argument and (R4)'s `sqrt`; the asin section says the same of its own blends, +and what it says of the low-word clear, of the shared polynomials and of the rare lanes holds +here for the same reasons. Where acos's text is not the C's: + +- `__LO(df) = 0` (lines 96-97) is the AND of the lane's 64 bits with `0xFFFFFFFF00000000`, the + C's own operation on the bits, exact, as in asin's `__LO(w) = 0`: nothing to prove, the claim is + that the port clears the word the C clears. `acos.skipLowClear` is the fault that omits it. +- The three ranges below 1 share one pass: `z` is `x*x`, `(one+x)*0.5` or `(one-x)*0.5` by the + C's compares, and `p`, `q` and `r = p/q` are then the same operations in all three (lines + 81-83, 87-88 and 90, 99-101), on `z`; `s = sqrt(z)` is `VectorOperators.SQRT`. The second + division, `(z-df*df)/(s+df)`, is computed on every lane and kept by the lanes of `x >= 0.5`. +- `pio2_hi+pio2_lo` (line 79) is the one constant of the port's source, `PIO2_HI + PIO2_LO`: a + Java constant expression of two doubles is evaluated as IEEE 754 addition, the one rounding the + C's run-time sum has (R4). +- The lanes of `|x| >= 1`, the infinities and the NaNs, which the C answers with its first + branch, are finished per lane by `StrictMath.acos`, which is the C: no computation of the port + is in them. + +**L13 for acos.** H1 (selection) holds: every mask is the C's compare on the same `ix` or `hx` (`ix +< 0x3ff00000`, `ix < 0x3fe00000`, `ix <= 0x3c600000`, `hx < 0`). The `<=` of the constant return is +the C's text. A scalar script run once, not committed, found the first form's result equal to the +constant's in 2000 random draws of each binade from `2^-80` to `2^-56`, and different from `2^-55` +up (213 of 2000 there); that is all the evidence, and no test of the port tells the compare from `<` +or from a neighbouring word. `acos.tinyMoved` moves the word to `0x3cd00000`, far enough to show. H2 +(operands) holds for the blend of `z`, the one operand the three ranges give the polynomials, and +for the sums, which are the C's in its order. H3 (totality) holds: every operation is an IEEE +operation on doubles, a compare, a bit operation or a reinterpretation, with no integer division and +no indexed load, so a discarded lane's `sqrt` of a negative `z` or a `NaN` is a value and nothing +else. H4 (select) holds: each blend is a `blend`. Not covered: that H1's words are the C's is +`AcosTest`'s (`constantsAreTheSourcesBits`, and the thresholds and their neighbours), which catches +`acos.halfMoved` (moved to `0x3fe80000`) and `acos.tinyMoved` (moved to `0x3cd00000`) and has no +fault for a word moved by one (for the constant return's word, see above); the port's code having +L13's shape is `AcosTest`'s tie and not L13's tests, which run a model; and (R4)'s `sqrt` is the +operator's, tested by `SqrtTest`, with the C's own `sqrt` not shown there. + +**Hinge tests.** The vector tie is `AcosTest`: `VFdlibm.acos` against `StrictMath.acos` at every +width and `SPECIES_MAX`, unmasked and masked, on the thresholds of lines 71, 78 and 79 and their +neighbours, sampled bit patterns, dense draws of `(-1, 1)`, of `(-0.6, -0.4)`, `(0.4, 0.6)`, +`(0.95, 1)` and `(-1, -0.95)`, the magnitudes from `2^-70` to `1`, the published hard cases (1569 +inputs, all positive) and their negations, which reach the branch of `x < -0.5`, and every subset +of a vector's lanes rare (`everySubsetOfLanesRare`); `scalarTranscriptionIsStrictMath` checks that +`cAcos`, e_acos.c in scalar Java, is `StrictMath.acos`. L13's own tests are `ProofsTest.l13*`. + +**Encoding.** No file of its own: nothing here is a fold. Informal here: that the port's blends +take each branch on exactly the C's lanes, and that it computes these steps, the code's text. diff --git a/README.md b/README.md index 9ab7527..ca81e5c 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,10 @@ java --module-path "target/classes:$(cat cp.txt)" -m example/example.Main ``` Each function takes a vector of any species of 128 bits or more. Released in 0.1.0: `exp`, -`expm1`, `log`, `log10` and `log1p`. On `main`, unreleased: `sinh`, `cosh`, `asin` and `atan`. -The system property `vfdlibm.fault` plants a fault, for this project's tests only, and works in -the shipped jar too: never set it, including through `JAVA_TOOL_OPTIONS`; a JVM that has it set -prints a warning to `System.err` once. The property and the fault names are for this +`expm1`, `log`, `log10` and `log1p`. On `main`, unreleased: `sinh`, `cosh`, `asin`, `atan` and +`acos`. The system property `vfdlibm.fault` plants a fault, for this project's tests only, and +works in the shipped jar too: never set it, including through `JAVA_TOOL_OPTIONS`; a JVM that has +it set prints a warning to `System.err` once. The property and the fault names are for this project's tests only: they are not part of the public API or of the compatibility promise, and any release, a patch included, may rename or remove them. With the property unset, the results are unchanged, and each lane still equals `StrictMath`'s. diff --git a/SKILLS.md b/SKILLS.md index 5be23e2..041e910 100644 --- a/SKILLS.md +++ b/SKILLS.md @@ -3,9 +3,9 @@ Lessons about benchmarking, the JIT and the Vector API that every port follows. Most were learned in Varka (github.com/vecbricks/varka, its `sql/varka/skills/`) and are rewritten here for a vector math library; the last sections are what the `exp`, `log`, `log1p`, `log10`, `expm1`, `sinh`, `cosh`, -`asin` and `atan` ports taught. Each entry says where its numbers come from. A new lesson goes in -the section it belongs to, as a short entry; a negative result belongs here too, since it stops the -next port re-trying a settled question. +`asin`, `atan` and `acos` ports taught. Each entry says where its numbers come from. A new lesson +goes in the section it belongs to, as a short entry; a negative result belongs here too, since it +stops the next port re-trying a settled question. ## Benchmarking with JMH @@ -1023,3 +1023,29 @@ next port re-trying a settled question. - **Hard cases: 1655 inputs**, from `dev/testlibm-extract.py asn asin` (the tag `asn` is asin's; the extractor's recheck passes on all 1655 lines). All are positive, between 6.5e-8 and 1, and the one at 1 is a rare lane. + +## What the acos port taught + +- **The sibling of asin, with its own branches.** acos splits `|x| < 0.5` from `x <= -0.5` + (`hx < 0`) and `x >= 0.5`, so one pass computes `z` for the three, the polynomials and `r = p/q` + once, and the blends keep each lane's form; the `x >= 0.5` form divides a second time, for `c`. + The sign decides two forms above 0.5, so the hard cases (all positive, 1569 of them) reach the + `x <= -0.5` form only by their negations, which `AcosTest` draws. One arm: no tie to break. +- **The C's comments are not its tests.** The comment says `x < -0.5` and `x > 0.5` where the + tests send `-0.5` to the `hx < 0` form and `+0.5` to the last one; the port and `AcosTest.cAcos` + use the tests, and the thresholds include both `+-0.5`. +- **Which of the four planted faults changes what** (sized on 2^22 draws, a throwaway program over + `VFdlibm.acos`, run once per fault; the counts are of 4194304 draws each). + `acos.dropPio2Lo` changed 842961 of `[-1, 1]` and none of `[0.5, 1)`, where the form has no + `pio2_lo`; `acos.halfMoved` (the split moved to `0x3fe80000`) 954010 of `[-1, 1]` and none of + `(-0.5, 0.5)`; `acos.skipLowClear` 140899 of `[-1, 1]` (564449 of `[0.5, 1)`, none of + `[-1, -0.5)`, whose form has no low-word clear); `acos.tinyMoved` (the constant return's word + moved to `0x3cd00000`) none of `[-1, 1]` and 935119 of the magnitudes `2^-60` to `2^-50`, which + is why the fault run's inputs include those magnitudes. A word moved by one is not planted. +- **Hard cases: 1569 inputs**, from `dev/testlibm-extract.py acs acos` (the extractor's recheck + passes on all of them). 1265 of them have fewer than 40 bits after the round bit pointing at the + midpoint, so most are not hard to round; the file keeps every line. All are positive, between + 0.0143 and 0.999999999999999. +- **Allocation.** CI runs `bench/alloc-check.py` on `AcosBenchmark`'s rows (`finish256`, + `finishPreferred`, `finishMax`, common and mixed data). No reading of them is committed and no + timing exists, so nothing is claimed of either. diff --git a/dev/jar-check.sh b/dev/jar-check.sh index fbc7966..3287944 100755 --- a/dev/jar-check.sh +++ b/dev/jar-check.sh @@ -486,6 +486,7 @@ public final class Consumer { check("cosh", StrictMath::cosh); check("asin", StrictMath::asin); check("atan", StrictMath::atan); + check("acos", StrictMath::acos); Module module = VFdlibm.class.getModule(); String in = module.isNamed() ? module.getName() : ""; System.out.printf("%d lanes at %d bits, %d wrong; the library is in %s%n", lanes, diff --git a/dev/nightly.sh b/dev/nightly.sh index d9d3d0e..d1219d6 100755 --- a/dev/nightly.sh +++ b/dev/nightly.sh @@ -12,13 +12,13 @@ # dev/nightly.sh sweep [...] # dev/nightly.sh fuzz [...] # -# is exp, expm1, log, log10, log1p, sinh, cosh, asin or atan. A sweep checks the high -# words of : comma-separated parts i/N of the 2^32, or stripe:s/S for the stripe Sweep.java's -# --stripe takes. A fuzz runs at each species (Fuzz.java). is decimal or 0x -# hex. The species default to the host's: 128, 256 and 512 bits up to the preferred species, and -# max (`Nightly species`), less the one NIGHTLY_EXCEPT names (the nightly sweeps x86 at 128 bits, -# and Arm at max, by a separate slice); a width the host lacks gets a line in the output saying -# so. For example, a slice of exp at 256 bits: +# is exp, expm1, log, log10, log1p, sinh, cosh, asin, atan or acos. A sweep checks the +# high words of : comma-separated parts i/N of the 2^32, or stripe:s/S for the stripe +# Sweep.java's --stripe takes. A fuzz runs at each species (Fuzz.java). is decimal +# or 0x hex. The species default to the host's: 128, 256 and 512 bits up to the preferred species, +# and max (`Nightly species`), less the one NIGHTLY_EXCEPT names (the nightly sweeps x86 at 128 +# bits, and Arm at max, by a separate slice); a width the host lacks gets a line in the output +# saying so. For example, a slice of exp at 256 bits: # # mvn -B -q test-compile && dev/nightly.sh sweep exp 1023/4096 0x1234 256 # diff --git a/pom.xml b/pom.xml index edd8953..b3b826d 100644 --- a/pom.xml +++ b/pom.xml @@ -616,6 +616,46 @@ ${vfdlibm.test.argLine} -Dvfdlibm.fault=asin.skipLowClear + + fault-acos.dropPio2Lo + ${vfdlibm.fault.phase} + test + + fault + true + ${vfdlibm.test.argLine} -Dvfdlibm.fault=acos.dropPio2Lo + + + + fault-acos.halfMoved + ${vfdlibm.fault.phase} + test + + fault + true + ${vfdlibm.test.argLine} -Dvfdlibm.fault=acos.halfMoved + + + + fault-acos.skipLowClear + ${vfdlibm.fault.phase} + test + + fault + true + ${vfdlibm.test.argLine} -Dvfdlibm.fault=acos.skipLowClear + + + + fault-acos.tinyMoved + ${vfdlibm.fault.phase} + test + + fault + true + ${vfdlibm.test.argLine} -Dvfdlibm.fault=acos.tinyMoved + + diff --git a/src/jmh/java/io/github/vecbricks/vfdlibm/AcosBenchmark.java b/src/jmh/java/io/github/vecbricks/vfdlibm/AcosBenchmark.java new file mode 100644 index 0000000..2cc41f8 --- /dev/null +++ b/src/jmh/java/io/github/vecbricks/vfdlibm/AcosBenchmark.java @@ -0,0 +1,134 @@ +/* + * Licensed to the vecbricks contributors under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy of the + * License at http://www.apache.org/licenses/LICENSE-2.0. Software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.vecbricks.vfdlibm; + +import java.util.SplittableRandom; +import java.util.concurrent.TimeUnit; +import jdk.incubator.vector.DoubleVector; +import jdk.incubator.vector.VectorSpecies; +import org.openjdk.jmh.annotations.Benchmark; +import org.openjdk.jmh.annotations.BenchmarkMode; +import org.openjdk.jmh.annotations.Fork; +import org.openjdk.jmh.annotations.Measurement; +import org.openjdk.jmh.annotations.Mode; +import org.openjdk.jmh.annotations.OutputTimeUnit; +import org.openjdk.jmh.annotations.Param; +import org.openjdk.jmh.annotations.Scope; +import org.openjdk.jmh.annotations.Setup; +import org.openjdk.jmh.annotations.State; +import org.openjdk.jmh.annotations.Warmup; + +/** + * acos over an array of 1024 doubles: the scalar {@code StrictMath.acos} loop and {@link + * Acos#acos}, the one arm ({@code VFdlibm.acos} runs it, with every lane of {@code |x| >= 1} + * finished per lane), at 256 and 512 bits, at the host's preferred species and at {@code + * SPECIES_MAX}. 128 bits is left out: on x86 C2 lowers no mask at two 64-bit lanes, so every + * 128-bit arm boxes (SKILLS.md). On a host without 512-bit vectors the 512-bit benchmark runs in + * software and measures nothing useful. + * + *

{@code inputs} picks the data: {@code common} draws from {@code (-0.99, 0.99)}, which holds + * all three of e_acos.c's ranges below 1 (the first form below {@code 0.5} in magnitude, about + * 51% of the draws, the form of {@code x <= -0.5}, about 24%, and the form of {@code x >= 0.5}, + * about 24%) and, with one draw in 64, a lane below {@code 2^-28} in magnitude (down to about + * {@code 2^-59}), some of them in the constant return ({@code ix <= 0x3c600000}); no lane takes the + * per-lane finish. {@code mixed} replaces one input in 16 with a rare one (1, -1, 1.5, -2, + * 1e300, {@code +inf}, {@code -inf} or a NaN: exactly 1, above 1, infinities and NaN), so many + * vectors hold one. {@code setUp} throws on any other value. + * + *

The vector form is larger than C2 inlines by default ({@code FreqInlineSize}), so a call + * from the loop may pass boxed vectors. Varka emits the sequence inline instead; to measure that, + * add {@code -jvmArgsAppend -XX:CompileCommand=inline,io.github.vecbricks.vfdlibm.*::*}. + * + *

{@code bench/alloc-check.py} runs the vector benchmarks named {@code *256}, {@code + * *Preferred} and {@code *Max} on {@code common} and {@code mixed} inputs and fails if any + * allocates, which means the body boxed. No reading of these rows is committed. acos has one arm, + * so there is no comparison to make between arms. + */ +@State(Scope.Thread) +@BenchmarkMode(Mode.AverageTime) +@OutputTimeUnit(TimeUnit.NANOSECONDS) +@Warmup(iterations = 3, time = 1) +@Measurement(iterations = 5, time = 1) +@Fork(value = 1, jvmArgsAppend = {"--add-modules", "jdk.incubator.vector"}) +public class AcosBenchmark { + + private static final int N = 1024; + private static final VectorSpecies S256 = DoubleVector.SPECIES_256; + private static final VectorSpecies S512 = DoubleVector.SPECIES_512; + private static final VectorSpecies SP = DoubleVector.SPECIES_PREFERRED; + private static final VectorSpecies SMAX = DoubleVector.SPECIES_MAX; + + @Param({"common", "mixed"}) + public String inputs; + + private double[] in; + private double[] out; + + @Setup + public void setUp() { + if (!inputs.equals("common") && !inputs.equals("mixed")) { + throw new IllegalArgumentException("inputs: " + inputs); + } + SplittableRandom random = new SplittableRandom(1L); + double[] rare = { + 1.0, -1.0, 1.5, -2.0, 1e300, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.NaN + }; + in = new double[N]; + out = new double[N]; + for (int i = 0; i < N; i++) { + in[i] = random.nextDouble(-0.99, 0.99); + if (random.nextInt(64) == 0) { + in[i] = Math.scalb(random.nextDouble(-1.0, 1.0), -random.nextInt(28, 60)); + } + if (inputs.equals("mixed") && random.nextInt(16) == 0) { + in[i] = rare[random.nextInt(rare.length)]; + } + } + } + + @Benchmark + public double[] scalarStrictMath() { + for (int i = 0; i < N; i++) { + out[i] = StrictMath.acos(in[i]); + } + return out; + } + + @Benchmark + public double[] finish256() { + for (int i = 0; i < N; i += S256.length()) { + Acos.acos(DoubleVector.fromArray(S256, in, i), null).intoArray(out, i); + } + return out; + } + + @Benchmark + public double[] finish512() { + for (int i = 0; i < N; i += S512.length()) { + Acos.acos(DoubleVector.fromArray(S512, in, i), null).intoArray(out, i); + } + return out; + } + + @Benchmark + public double[] finishPreferred() { + for (int i = 0; i < N; i += SP.length()) { + Acos.acos(DoubleVector.fromArray(SP, in, i), null).intoArray(out, i); + } + return out; + } + + @Benchmark + public double[] finishMax() { + for (int i = 0; i < N; i += SMAX.length()) { + Acos.acos(DoubleVector.fromArray(SMAX, in, i), null).intoArray(out, i); + } + return out; + } +} diff --git a/src/main/java/io/github/vecbricks/vfdlibm/Acos.java b/src/main/java/io/github/vecbricks/vfdlibm/Acos.java new file mode 100644 index 0000000..2a16833 --- /dev/null +++ b/src/main/java/io/github/vecbricks/vfdlibm/Acos.java @@ -0,0 +1,217 @@ +/* + * Licensed to the vecbricks contributors under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy of the + * License at http://www.apache.org/licenses/LICENSE-2.0. Software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + * + * This file ports fdlibm 5.3's e_acos.c (reference/fdlibm-5.3/e_acos.c), which carries this + * notice: + * + * ==================================================== + * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + * + * Developed at SunSoft, a Sun Microsystems, Inc. business. + * Permission to use, copy, modify, and distribute this + * software is freely granted, provided that this notice + * is preserved. + * ==================================================== + */ +package io.github.vecbricks.vfdlibm; + +import jdk.incubator.vector.DoubleVector; +import jdk.incubator.vector.IntVector; +import jdk.incubator.vector.LongVector; +import jdk.incubator.vector.VectorMask; +import jdk.incubator.vector.VectorOperators; +import jdk.incubator.vector.VectorSpecies; + +/** + * acos over lanes, ported from fdlibm 5.3's {@code __ieee754_acos} in {@code + * reference/fdlibm-5.3/e_acos.c}; every lane is bit-identical to {@code StrictMath.acos}. + * + *

The method, from the C, by {@code ix}, the high word of {@code |x|}, and {@code hx}'s sign: + * for {@code ix <= 0x3c600000} return {@code pio2_hi+pio2_lo}; below {@code 0.5}, with {@code z = + * x*x}, {@code pio2_hi - (x - (pio2_lo - x*r))} where {@code r = p/q}, {@code p} and {@code q} + * being polynomials in {@code z}; for {@code x <= -0.5}, with {@code z = (1+x)*0.5} and {@code s = + * sqrt(z)}, {@code pi - 2.0*(s+w)} with {@code w = r*s - pio2_lo}; and for {@code x >= 0.5}, with + * {@code z = (1-x)*0.5}, {@code s = sqrt(z)}, {@code df} the root {@code s} with its low word + * cleared and {@code c = (z - df*df)/(s+df)}, {@code 2.0*(df + w)} with {@code w = r*s + c}. + * Every operation is the C's, in the C's order, with no fused multiply-add and no + * reassociation, so no lemma of its own is needed beyond L13's blend argument and (R4)'s {@code + * sqrt}; {@code PROOFS.md}'s acos section says which hypotheses of L13 each blend meets. + * + *

The three ranges below 1 share one pass, as asin's do: {@code z} is picked by the C's + * compares ({@code x*x}, {@code (1+x)*0.5} or {@code (1-x)*0.5}), and the polynomials and the + * division {@code p/q} run on it in every lane. The root is {@code VectorOperators.SQRT}. The + * step that clears a low word, {@code __LO(df) = 0}, is the C's own, an AND of the lane's bits with + * {@code 0xFFFFFFFF00000000}, and not arithmetic. The positive range divides a second time, for + * {@code c}; every lane computes both divisions and the blends keep each lane's. + * + *

The rare path: {@code |x| >= 1} (exactly {@code 1} gives {@code 0.0}, exactly {@code -1} + * gives {@code pi+2.0*pio2_lo}, anything above one or a NaN a NaN made by {@code (x-x)/(x-x)}). + * The arm finishes those lanes per lane with {@code StrictMath.acos}, which is the C. A vector + * holds one only when its input is {@code 1} or more in magnitude or a NaN. + * + *

The C's {@code int} words stay in int lanes, as in asin; every test is the C's compare of + * {@code ix = hx&0x7fffffff} or of {@code hx}'s sign. C2 stops inlining once the compiled graph + * passes {@code NodeCountInliningCutoff}, so every call this body makes comes first ({@code + * Lanes.intSpecies}, {@code Lanes.hiInt}); after them there are only Vector API operations and + * the per-lane finish written out in the body. + */ +final class Acos { + + // The constants of e_acos.c, as its source writes them; AcosTest checks the bits. + static final double ONE = 1.0; + static final double PI = 3.14159265358979311600e+00; // 0x400921FB, 0x54442D18 + static final double PIO2_HI = 1.57079632679489655800e+00; // 0x3FF921FB, 0x54442D18 + static final double PIO2_LO = 6.12323399573676603587e-17; // 0x3C91A626, 0x33145C07 + /** The coefficients of {@code R(z)}: pS0 to pS5, then qS1 to qS4. */ + static final double PS0 = 1.66666666666666657415e-01; // 0x3FC55555, 0x55555555 + static final double PS1 = -3.25565818622400915405e-01; // 0xBFD4D612, 0x03EB6F7D + static final double PS2 = 2.01212532134862925881e-01; // 0x3FC9C155, 0x0E884455 + static final double PS3 = -4.00555345006794114027e-02; // 0xBFA48228, 0xB5688F3B + static final double PS4 = 7.91534994289814532176e-04; // 0x3F49EFE0, 0x7501B288 + static final double PS5 = 3.47933107596021167570e-05; // 0x3F023DE1, 0x0DFDF709 + static final double QS1 = -2.40339491173441421878e+00; // 0xC0033A27, 0x1C8A2D4B + static final double QS2 = 2.02094576023350569471e+00; // 0x40002AE5, 0x9C598AC8 + static final double QS3 = -6.88283971605453293030e-01; // 0xBFE6066C, 0x1B8D0159 + static final double QS4 = 7.70381505559019352791e-02; // 0x3FB3B8C5, 0xB12E9282 + + // The high words e_acos.c compares |x| against. + /** {@code |x| >= 1}: the lanes finished per lane. */ + static final int HX_ONE = 0x3ff00000; + /** {@code |x| < 0.5}: the lanes of the first form; from it on the sign of {@code hx} decides. */ + static final int HX_HALF = 0x3fe00000; + /** + * {@code ix <= 0x3c600000}: the lanes whose result is a constant, the doubles below {@code 2^-57} + * and those of the word of {@code 2^-57} itself, up to just under {@code 2^-57 * (1 + 2^-20)}. + */ + static final int HX_TINY = 0x3c600000; + + /** The mask of {@code __LO(df) = 0}: the high word kept, the low word cleared. */ + static final long CLEAR_LOW_WORD = 0xFFFFFFFF00000000L; + + // Planted faults (PLAN.md section 4), read through Faults; each folds away when unplanted. + static final String DROP_PIO2_LO = "acos.dropPio2Lo"; + static final String HALF_MOVED = "acos.halfMoved"; + static final String SKIP_LOW_CLEAR = "acos.skipLowClear"; + static final String TINY_MOVED = "acos.tinyMoved"; + // Read once into constants, so the body holds no call and an unplanted fault folds away. Each + // is sized in SKILLS.md, "What the acos port taught". + /** {@code pio2_lo} as {@code 0.0} in the two forms that use it besides the constant return. */ + private static final double PIO2_LO_USED = Faults.is(DROP_PIO2_LO) ? 0.0 : PIO2_LO; + /** Moves line 78's {@code 0.5} word to {@code 0.75}'s, {@code 0x3fe80000}. */ + private static final int HX_HALF_USED = Faults.is(HALF_MOVED) ? 0x3fe80000 : HX_HALF; + /** The low-word clear skipped: the mask keeps every bit. */ + private static final long CLEAR_LOW_WORD_USED = Faults.is(SKIP_LOW_CLEAR) ? -1L : CLEAR_LOW_WORD; + /** Moves line 79's word to {@code 0x3cd00000}, {@code 2^-50}'s. */ + private static final int HX_TINY_USED = Faults.is(TINY_MOVED) ? 0x3cd00000 : HX_TINY; + + private Acos() {} + + /** + * acos with the rare lanes finished per lane. {@code live} is null for every lane; otherwise + * only live lanes are computed, inactive lanes return {@code x}'s lane untouched, and an + * inactive lane never takes the per-lane finish. + */ + static DoubleVector acos(DoubleVector x, VectorMask live) { + VectorSpecies species = x.species(); + VectorSpecies intSpecies = Lanes.intSpecies(species); + // Lines 69-70: hx = __HI(x); ix = hx&0x7fffffff, below. + IntVector hx = Lanes.hiInt(x, intSpecies); + IntVector ix = hx.and(0x7fffffff); + // Lines 71, 78, 79 and 85: |x| < 1, |x| < 0.5, ix <= 0x3c600000 and hx < 0. + VectorMask common = ix.compare(VectorOperators.LT, HX_ONE).cast(species); + VectorMask small = ix.compare(VectorOperators.LT, HX_HALF_USED).cast(species); + VectorMask tiny = ix.compare(VectorOperators.LE, HX_TINY_USED).cast(species); + VectorMask negative = hx.compare(VectorOperators.LT, 0).cast(species); + + // Lines 80, 86 and 94: z = x*x below 0.5, (one+x)*0.5 for x <= -0.5, (one-x)*0.5 above. The + // polynomials and the division then run on z in every lane (L13, H2: an operand blend). + DoubleVector one = DoubleVector.broadcast(species, ONE); + DoubleVector z = one.sub(x).mul(0.5).blend(one.add(x).mul(0.5), negative) + .blend(x.mul(x), small); + // Lines 81-82, 87-88, 99-100: p = z*(pS0+z*(pS1+...)), q = one+z*(qS1+z*(qS2+...)). + DoubleVector p4 = z.mul(PS5).add(PS4); + DoubleVector p3 = z.mul(p4).add(PS3); + DoubleVector p2 = z.mul(p3).add(PS2); + DoubleVector p1 = z.mul(p2).add(PS1); + DoubleVector p = z.mul(z.mul(p1).add(PS0)); + DoubleVector q3 = z.mul(QS4).add(QS3); + DoubleVector q2 = z.mul(q3).add(QS2); + DoubleVector q1 = z.mul(q2).add(QS1); + DoubleVector q = z.mul(q1).add(ONE); + // Lines 83, 90 and 101: r = p/q, one division, the same operands in all three. + DoubleVector r = p.div(q); + // Lines 89 and 95: s = sqrt(z). + DoubleVector s = z.lanewise(VectorOperators.SQRT); + + // Line 84: pio2_hi - (x - (pio2_lo-x*r)), the first form. + DoubleVector first = DoubleVector.broadcast(species, PIO2_HI) + .sub(x.sub(DoubleVector.broadcast(species, PIO2_LO_USED).sub(x.mul(r)))); + // Lines 91-92: w = r*s-pio2_lo; pi - 2.0*(s+w), for x <= -0.5. + DoubleVector w = r.mul(s).sub(PIO2_LO_USED); + DoubleVector second = DoubleVector.broadcast(species, PI).sub(s.add(w).mul(2.0)); + // Lines 96-97: df = s; __LO(df) = 0, the C's own clear of the low word (an AND of the bits). + DoubleVector df = (DoubleVector) ((LongVector) s.viewAsIntegralLanes()) + .and(CLEAR_LOW_WORD_USED).viewAsFloatingLanes(); + // Line 98: c = (z-df*df)/(s+df), the second division. + DoubleVector c = z.sub(df.mul(df)).div(s.add(df)); + // Lines 102-103: w = r*s+c; 2.0*(df+w), for x >= 0.5. + DoubleVector third = df.add(r.mul(s).add(c)).mul(2.0); + // Line 79: ix <= 0x3c600000 returns pio2_hi+pio2_lo, a constant of the C's own sum. + DoubleVector result = third.blend(second, negative).blend(first, small) + .blend(DoubleVector.broadcast(species, PIO2_HI + PIO2_LO), tiny); + + if (live != null) { + result = x.blend(result, live); + } + // |x| >= 1, infinities and NaN included, is finished per lane, written out here with no call + // that takes a vector, as Asin's finish is: lane and withLane are lane extract and insert, + // which C2 intrinsifies for the fixed shapes, and the only call is StrictMath.acos on a + // double. The first eight lanes have constant indices, as in the other ports' finishes + // since #100, and the loop takes the lanes past eight. rare is and-ed with live, so an + // inactive lane is never rewritten. + VectorMask rare = common.not(); + if (live != null) { + rare = rare.and(live); + } + if (rare.anyTrue()) { + long rareLanes = rare.toLong(); + int lanes = x.length(); + if (lanes > 0 && (rareLanes & 1L) != 0) { + result = result.withLane(0, StrictMath.acos(x.lane(0))); + } + if (lanes > 1 && (rareLanes & 2L) != 0) { + result = result.withLane(1, StrictMath.acos(x.lane(1))); + } + if (lanes > 2 && (rareLanes & 4L) != 0) { + result = result.withLane(2, StrictMath.acos(x.lane(2))); + } + if (lanes > 3 && (rareLanes & 8L) != 0) { + result = result.withLane(3, StrictMath.acos(x.lane(3))); + } + if (lanes > 4 && (rareLanes & 16L) != 0) { + result = result.withLane(4, StrictMath.acos(x.lane(4))); + } + if (lanes > 5 && (rareLanes & 32L) != 0) { + result = result.withLane(5, StrictMath.acos(x.lane(5))); + } + if (lanes > 6 && (rareLanes & 64L) != 0) { + result = result.withLane(6, StrictMath.acos(x.lane(6))); + } + if (lanes > 7 && (rareLanes & 128L) != 0) { + result = result.withLane(7, StrictMath.acos(x.lane(7))); + } + rareLanes &= ~0xffL; + while (rareLanes != 0) { + int lane = Long.numberOfTrailingZeros(rareLanes); + rareLanes &= rareLanes - 1; + result = result.withLane(lane, StrictMath.acos(x.lane(lane))); + } + } + return result; + } +} diff --git a/src/main/java/io/github/vecbricks/vfdlibm/VFdlibm.java b/src/main/java/io/github/vecbricks/vfdlibm/VFdlibm.java index 9b994bf..22acb36 100644 --- a/src/main/java/io/github/vecbricks/vfdlibm/VFdlibm.java +++ b/src/main/java/io/github/vecbricks/vfdlibm/VFdlibm.java @@ -17,7 +17,7 @@ * {@link StrictMath} method of the same name, NaN payloads and signed zeros included. * *

Every method works on a vector of any species of 128 bits or more (exp, expm1, log, log10, - * log1p, sinh, cosh, asin and atan hold fdlibm's {@code int} words in int lanes of half the + * log1p, sinh, cosh, asin, atan and acos hold fdlibm's {@code int} words in int lanes of half the * vector's size). Each comes in two forms: one computes every lane, and a masked form computes * only the lanes set in {@code live} and returns every other lane of its argument untouched, raw * bits and all. An inactive lane never sends the vector down a slow path. @@ -279,4 +279,26 @@ public static DoubleVector atan(DoubleVector x) { public static DoubleVector atan(DoubleVector x, VectorMask live) { return Atan.atan(x, Objects.requireNonNull(live, "live")); } + + /** + * {@code StrictMath.acos} in every lane. Ported from fdlibm 5.3's {@code e_acos.c}. + * + * @param x the arguments + * @return the arc cosine of each lane of {@code x} + */ + public static DoubleVector acos(DoubleVector x) { + return Acos.acos(x, null); + } + + /** + * {@code StrictMath.acos} in the lanes set in {@code live}; every other lane is {@code x}'s, + * untouched. + * + * @param x the arguments + * @param live the lanes to compute, of {@code x}'s species + * @return the arc cosine of each live lane of {@code x}, and {@code x} in the others + */ + public static DoubleVector acos(DoubleVector x, VectorMask live) { + return Acos.acos(x, Objects.requireNonNull(live, "live")); + } } diff --git a/src/test/java/io/github/vecbricks/vfdlibm/AcosTest.java b/src/test/java/io/github/vecbricks/vfdlibm/AcosTest.java new file mode 100644 index 0000000..9793015 --- /dev/null +++ b/src/test/java/io/github/vecbricks/vfdlibm/AcosTest.java @@ -0,0 +1,363 @@ +/* + * Licensed to the vecbricks contributors under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. You may obtain a copy of the + * License at http://www.apache.org/licenses/LICENSE-2.0. Software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.github.vecbricks.vfdlibm; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.function.BiFunction; +import java.util.function.Consumer; +import jdk.incubator.vector.DoubleVector; +import jdk.incubator.vector.VectorMask; +import jdk.incubator.vector.VectorShape; +import jdk.incubator.vector.VectorSpecies; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.function.Executable; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.EnumSource; + +/** + * acos against {@code StrictMath.acos}, by raw bits, at every width and at {@code SPECIES_MAX}: + * {@link VFdlibm#acos}, unmasked and masked, on e_acos.c's high-word tests, the special values, + * sampled bit patterns over the whole domain, dense draws over each range the C treats + * differently, both signs (acos is not odd: the two signs reach two different forms above 0.5), + * every subset of a vector's lanes rare, and the published hard-to-round cases with their + * negations. + */ +class AcosTest { + + private static final int SAMPLED = 1 << 20; + private static final int DENSE = 1 << 20; + + /** The arm, by name, as a masked form; a null mask computes every lane. */ + private static final Map, DoubleVector>> + ARMS = arms(); + + private static Map, DoubleVector>> arms() { + Map, DoubleVector>> arms = + new LinkedHashMap<>(); + arms.put( + "VFdlibm.acos", (x, live) -> live == null ? VFdlibm.acos(x) : VFdlibm.acos(x, live)); + return arms; + } + + /** Every arm, unmasked, at {@code species}, over {@code xs}. */ + private static void assertAcos(VectorSpecies species, double[] xs) { + ARMS.forEach((name, arm) -> Oracle.assertUnary( + name, species, x -> arm.apply(x, null), StrictMath::acos, xs)); + } + + /** Every arm, masked under seeded random masks, all-true and all-false, from {@code seed}. */ + private static void assertAcosMasked(VectorSpecies species, double[] xs, long seed) { + for (Map.Entry, DoubleVector>> arm : + ARMS.entrySet()) { + Oracle.assertUnaryMasked( + arm.getKey(), species, arm.getValue(), StrictMath::acos, xs, seed++); + } + } + + /** + * e_acos.c in scalar Java, line by line, the rare lanes included: exactly {@code +-1}, and + * {@code (x-x)/(x-x)} above it. It matches {@code StrictMath.acos} on every input the tests + * give it, so a hinge or a fault run that uses it shows the C's result, not a guess. The + * {@code __LO(df) = 0} is the AND of the bits with {@link Acos#CLEAR_LOW_WORD}. + */ + static double cAcos(double x) { + int hx = (int) (Double.doubleToRawLongBits(x) >>> 32); + int ix = hx & 0x7fffffff; + int lo = (int) Double.doubleToRawLongBits(x); + if (ix >= Acos.HX_ONE) { + if (((ix - Acos.HX_ONE) | lo) == 0) { + if (hx > 0) { + return 0.0; + } + return Acos.PI + 2.0 * Acos.PIO2_LO; + } + return (x - x) / (x - x); + } + if (ix < Acos.HX_HALF) { + if (ix <= Acos.HX_TINY) { + return Acos.PIO2_HI + Acos.PIO2_LO; + } + double z = x * x; + double p = z * (Acos.PS0 + z * (Acos.PS1 + z * (Acos.PS2 + z * (Acos.PS3 + + z * (Acos.PS4 + z * Acos.PS5))))); + double q = Acos.ONE + z * (Acos.QS1 + z * (Acos.QS2 + z * (Acos.QS3 + z * Acos.QS4))); + double r = p / q; + return Acos.PIO2_HI - (x - (Acos.PIO2_LO - x * r)); + } else if (hx < 0) { + double z = (Acos.ONE + x) * 0.5; + double p = z * (Acos.PS0 + z * (Acos.PS1 + z * (Acos.PS2 + z * (Acos.PS3 + + z * (Acos.PS4 + z * Acos.PS5))))); + double q = Acos.ONE + z * (Acos.QS1 + z * (Acos.QS2 + z * (Acos.QS3 + z * Acos.QS4))); + double s = StrictMath.sqrt(z); + double r = p / q; + double w = r * s - Acos.PIO2_LO; + return Acos.PI - 2.0 * (s + w); + } else { + double z = (Acos.ONE - x) * 0.5; + double s = StrictMath.sqrt(z); + double df = Double.longBitsToDouble(Double.doubleToRawLongBits(s) & Acos.CLEAR_LOW_WORD); + double c = (z - df * df) / (s + df); + double p = z * (Acos.PS0 + z * (Acos.PS1 + z * (Acos.PS2 + z * (Acos.PS3 + + z * (Acos.PS4 + z * Acos.PS5))))); + double q = Acos.ONE + z * (Acos.QS1 + z * (Acos.QS2 + z * (Acos.QS3 + z * Acos.QS4))); + double r = p / q; + double w = r * s + c; + return 2.0 * (df + w); + } + } + + /** + * Every threshold e_acos.c branches on, with its neighbours, both signs: the high words of its + * constant return, its {@code |x| < 0.5} split, its 1 and the infinities, 64 ulps each way, and + * the special values. + */ + static double[] thresholds() { + double[] xs = Inputs.specials(1.0, -1.0, 0.5, -0.5, 0x1p-57, -0x1p-57); + int[] words = {Acos.HX_TINY, Acos.HX_TINY + 1, Acos.HX_HALF, Acos.HX_ONE, 0x7ff00000}; + for (int word : words) { + double edge = Lanes.fromHi(word); + xs = Inputs.concat(xs, Inputs.around(edge, 64), Inputs.around(-edge, 64)); + } + // 2^-57 itself and its neighbours: the constant return is the compare ix <= 0x3c600000. + return Inputs.concat(xs, Inputs.around(0x1p-57, 64), Inputs.around(-0x1p-57, 64)); + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void thresholdsAndSpecials(VectorWidth width) { + assertAcos(width.species(), thresholds()); + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void sampledBitPatterns(VectorWidth width) { + assertAcos(width.species(), Inputs.sampled(8000L + width.ordinal(), SAMPLED)); + } + + /** Uniform over (-1, 1): the three ranges below 1, both signs. */ + @ParameterizedTest + @EnumSource(VectorWidth.class) + void denseOverTheRanges(VectorWidth width) { + assertAcos(width.species(), Inputs.uniform(8100L + width.ordinal(), DENSE, -1.0, 1.0)); + } + + /** + * Draws spread over the binades 2^-70 to 2^0, both signs: the constant return, the lanes just + * above it, and every form. + */ + @ParameterizedTest + @EnumSource(VectorWidth.class) + void magnitudes(VectorWidth width) { + long seed = 8200L + 16L * width.ordinal(); + assertAcos(width.species(), Inputs.concat( + Inputs.magnitudes(seed, 1 << 18, -70, -1), + Inputs.magnitudes(seed + 1, 1 << 16, -60, -50), + Inputs.uniform(seed + 2, 1 << 16, 0.97, 1.0), + Inputs.uniform(seed + 3, 1 << 16, -1.0, -0.97))); + } + + /** Dense draws around the split at 0.5 on both sides, both signs, and near 1. */ + @ParameterizedTest + @EnumSource(VectorWidth.class) + void splitsAndLimit(VectorWidth width) { + long seed = 8300L + 16L * width.ordinal(); + assertAcos(width.species(), Inputs.concat( + Inputs.uniform(seed, 1 << 16, 0.4, 0.6), + Inputs.uniform(seed + 1, 1 << 16, -0.6, -0.4), + Inputs.uniform(seed + 2, 1 << 16, 0.95, 1.0), + Inputs.uniform(seed + 3, 1 << 16, -1.0, -0.95))); + } + + /** The published hard-to-round inputs, and their negations: see {@link Inputs#hardCases}. */ + private static double[] hardCasesBothSigns() { + double[] xs = Inputs.hardCases("acos"); + double[] negated = new double[xs.length]; + for (int i = 0; i < xs.length; i++) { + negated[i] = -xs[i]; + } + return Inputs.concat(xs, negated); + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void publishedHardCases(VectorWidth width) { + assertAcos(width.species(), hardCasesBothSigns()); + } + + private static double[] maskedInputs() { + return Inputs.concat(thresholds(), Inputs.sampled(8400L, 4096), + Inputs.uniform(8401L, 4096, -1.0, 1.0), Inputs.magnitudes(8402L, 4096, -70, -1), + hardCasesBothSigns()); + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void masked(VectorWidth width) { + assertAcosMasked(width.species(), maskedInputs(), 8403L); + } + + /** + * SPECIES_MAX, which {@link VectorWidth} does not run: its shape is none of the fixed ones, so + * acos's int lanes are a fixed-shape species of another shape ({@link Lanes#intSpecies}). + */ + @Test + void maxSpecies() { + double[] xs = Inputs.concat(thresholds(), Inputs.sampled(8500L, 1 << 14), + Inputs.uniform(8501L, 1 << 14, -1.0, 1.0), Inputs.magnitudes(8502L, 1 << 14, -70, -1), + hardCasesBothSigns()); + assertAcos(DoubleVector.SPECIES_MAX, xs); + assertAcosMasked(DoubleVector.SPECIES_MAX, xs, 8503L); + } + + /** + * One vector for every subset of a vector's lanes, the subset's lanes rare (1 or more in + * magnitude, or NaN) and the others common, the subsets as {@link ExpTest#rareLaneSubsets} + * lists them (every subset up to 16 lanes, sampled above): exactly one rare lane at each + * position, every lane rare, and every mix between. The finish walks the rare mask's set bits, + * so a lane it skipped or visited twice shows here. The rare inputs cycle through every kind: + * exactly 1 and -1, the doubles next to them, above 1, huge, the infinities and NaNs of both + * signs. The common lanes include both zeros, a constant-return lane and one in each range + * and of each sign. + */ + static double[] everySubsetOfLanesRare(int lanes) { + double[] rare = { + 1.0, -1.0, Math.nextUp(1.0), -Math.nextUp(1.0), 2.0, -3.0, 1.0e300, -1.0e300, Double.NaN, + Double.longBitsToDouble(0xfff8_0000_0000_0001L), Double.POSITIVE_INFINITY, + Double.NEGATIVE_INFINITY + }; + double[] common = {0.0, -0.0, 0x1p-60, -0x1p-58, 0.3, -0.7, 0.99, -0.98}; + long[] subsets = ExpTest.rareLaneSubsets(lanes); + double[] xs = new double[subsets.length * lanes]; + int next = 0; + for (int s = 0; s < subsets.length; s++) { + for (int lane = 0; lane < lanes; lane++) { + boolean isRare = (subsets[s] >>> lane & 1L) != 0; + xs[s * lanes + lane] = isRare ? rare[next++ % rare.length] + : (s + lane) % 5 == 0 ? common[(s / 5 + lane) % common.length] + : Math.sin(0.67 * lane + s); + } + } + return xs; + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void everySubsetOfLanesRare(VectorWidth width) { + assertEverySubsetOfLanesRare(width.species()); + } + + /** {@link #everySubsetOfLanesRare(VectorWidth)} at SPECIES_MAX, which VectorWidth skips. */ + @Test + void everySubsetOfLanesRareAtMaxSpecies() { + assertEverySubsetOfLanesRare(DoubleVector.SPECIES_MAX); + } + + /** The arm, unmasked and masked, on {@link #everySubsetOfLanesRare(int)}. */ + private static void assertEverySubsetOfLanesRare(VectorSpecies species) { + double[] xs = everySubsetOfLanesRare(species.length()); + assertAcos(species, xs); + assertAcosMasked(species, xs, 8600L); + } + + /** + * The scalar transcription of e_acos.c is {@code StrictMath.acos} on the inputs the vector + * tests use, the rare lanes included (the C's own {@code (x-x)/(x-x)} and its {@code +-1}), so + * a hinge or a fault run that reads it shows the C's result. + */ + @Test + void scalarTranscriptionIsStrictMath() { + double[] xs = Inputs.concat(thresholds(), Inputs.sampled(8700L, 1 << 16), + Inputs.uniform(8701L, 1 << 16, -1.0, 1.0), Inputs.magnitudes(8702L, 1 << 16, -70, -1), + hardCasesBothSigns()); + for (double x : xs) { + assertEquals(Double.doubleToRawLongBits(StrictMath.acos(x)), + Double.doubleToRawLongBits(cAcos(x)), Oracle.hex(x)); + } + } + + @Test + void maskedFormRejectsANullMask() { + DoubleVector x = DoubleVector.zero(DoubleVector.SPECIES_128); + assertThrows(NullPointerException.class, () -> VFdlibm.acos(x, null)); + } + + /** The constants are e_acos.c's: its comments give each one's bits, and so do these. */ + @Test + void constantsAreTheSourcesBits() { + assertBits(0x3ff00000_00000000L, Acos.ONE); + assertBits(0x400921FB_54442D18L, Acos.PI); + assertBits(0x3FF921FB_54442D18L, Acos.PIO2_HI); + assertBits(0x3C91A626_33145C07L, Acos.PIO2_LO); + assertBits(0x3FC55555_55555555L, Acos.PS0); + assertBits(0xBFD4D612_03EB6F7DL, Acos.PS1); + assertBits(0x3FC9C155_0E884455L, Acos.PS2); + assertBits(0xBFA48228_B5688F3BL, Acos.PS3); + assertBits(0x3F49EFE0_7501B288L, Acos.PS4); + assertBits(0x3F023DE1_0DFDF709L, Acos.PS5); + assertBits(0xC0033A27_1C8A2D4BL, Acos.QS1); + assertBits(0x40002AE5_9C598AC8L, Acos.QS2); + assertBits(0xBFE6066C_1B8D0159L, Acos.QS3); + assertBits(0x3FB3B8C5_B12E9282L, Acos.QS4); + // e_acos.c's literal words: lines 71, 78 and 79, and line 97's mask. + assertEquals(0x3ff00000, Acos.HX_ONE); + assertEquals(0x3fe00000, Acos.HX_HALF); + assertEquals(0x3c600000, Acos.HX_TINY); + assertEquals(0xFFFFFFFF00000000L, Acos.CLEAR_LOW_WORD); + } + + private static void assertBits(long want, double got) { + assertEquals(Long.toHexString(want), Long.toHexString(Double.doubleToRawLongBits(got))); + } + + // --------------------------------------------------------------------------------------------- + // Planted faults + // --------------------------------------------------------------------------------------------- + + /** + * Each of acos's faults, with a check that must fail while it is planted: the vector form over + * {@link #faultRunInputs()} at every width the host has. Each was sized on 2^22 draws before it + * was wired ({@link Acos}; the counts are in {@code SKILLS.md}). + */ + static Map faultCatchers() { + Map catchers = new LinkedHashMap<>(); + for (String fault : new String[] { + Acos.DROP_PIO2_LO, Acos.HALF_MOVED, Acos.SKIP_LOW_CLEAR, Acos.TINY_MOVED}) { + catchers.put(fault, () -> forEachWidth(species -> ARMS.forEach((name, arm) -> + PlantedFaultTest.assertCaught(fault, () -> Oracle.assertUnary( + name, species, x -> arm.apply(x, null), StrictMath::acos, faultRunInputs()))))); + } + return catchers; + } + + private static double[] faultRunInputs() { + return Inputs.concat( + thresholds(), + Inputs.uniform(8800L, 1 << 16, -1.0, 1.0), + Inputs.uniform(8801L, 1 << 14, 0.5, 1.0), + Inputs.uniform(8802L, 1 << 14, -1.0, -0.5), + Inputs.magnitudes(8803L, 1 << 14, -60, -50)); + } + + @ParameterizedTest + @EnumSource(VectorWidth.class) + void faultRunInputsPass(VectorWidth width) { + assertAcos(width.species(), faultRunInputs()); + } + + private static void forEachWidth(Consumer> check) { + int preferred = DoubleVector.SPECIES_PREFERRED.vectorBitSize(); + for (int bits = 128; bits <= preferred; bits *= 2) { + check.accept(VectorSpecies.of(double.class, VectorShape.forBitSize(bits))); + } + } +} diff --git a/src/test/java/io/github/vecbricks/vfdlibm/Fuzz.java b/src/test/java/io/github/vecbricks/vfdlibm/Fuzz.java index 8aed539..5e01779 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/Fuzz.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/Fuzz.java @@ -224,6 +224,17 @@ record PairEdges(Edges x, Edges y, double[] specials, int[] wordGaps) { false, new double[] {0.5, 1.0, 1.5, 2.0, 0.4375, 0.6875, 1.1875, 2.4375, 0x1p66, 0x1p-29}); + /** + * acos: e_acos.c's high-word tests (the constant return at {@code 0x3c600000}, the split at + * 0.5 and the per-lane finish from 1) and the doubles at them, both signs, which the sign of + * {@code hx} sends to the two forms above 0.5; the non-finite words as well. + */ + static final Edges ACOS = new Edges( + new int[] {Acos.HX_TINY, Acos.HX_HALF, Acos.HX_ONE, 0x7ff00000, 0}, + new int[0], + false, + new double[] {0x1p-57, 0.5, -0.5, 1.0, -1.0, Math.nextDown(1.0), Math.nextUp(-1.0)}); + /** cosh's own edges, and {@code (k + 1/2) ln2} for every k up to the overflow's. */ private static double[] coshPoints() { double ln2 = StrictMath.log(2.0); @@ -278,6 +289,7 @@ static Edges edges(Nightly.Function function) { case COSH -> COSH; case ASIN -> ASIN; case ATAN -> ATAN; + case ACOS -> ACOS; }; } diff --git a/src/test/java/io/github/vecbricks/vfdlibm/HarnessSelfTest.java b/src/test/java/io/github/vecbricks/vfdlibm/HarnessSelfTest.java index 4c414a4..e1c5e8d 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/HarnessSelfTest.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/HarnessSelfTest.java @@ -407,7 +407,7 @@ void specialsCoverTheEdgeCases() { void hardCasesLoadEachFunctionsFile() { Map counts = Map.of( "exp", 2283, "expm1", 7584, "log", 2820, "log10", 1886, "log1p", 7550, "sinh", 2215, - "cosh", 2026, "asin", 1655, "atan", 1735); + "cosh", 2026, "asin", 1655, "atan", 1735, "acos", 1569); counts.forEach((function, count) -> { long[] bits = rawBits(Inputs.hardCases(function)); assertEquals(count.intValue(), bits.length, function); diff --git a/src/test/java/io/github/vecbricks/vfdlibm/Inputs.java b/src/test/java/io/github/vecbricks/vfdlibm/Inputs.java index a3c37c5..022ce1a 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/Inputs.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/Inputs.java @@ -141,17 +141,17 @@ static double[] specials(double... edges) { } /** - * The published hard-to-round inputs for {@code function} ({@code "exp"}, {@code "expm1"}, - * {@code "log"}, {@code "log10"}, {@code "log1p"}, {@code "sinh"}, {@code "cosh"}, {@code - * "asin"}, {@code "atan"}), from the test resource {@code hard-cases/.txt}, whose - * header names the sources. At each the exact result lies very close to a rounding boundary, - * where a dropped correction term or a reassociated sum, an error far below one ulp, is most - * likely to change the returned double. A port matching fdlibm step for step matches {@code - * StrictMath} on them as on any input. For exp's planted faults they caught nothing that - * uniform draws miss, and fewer of them flip (the commit adding them has the counts); they are - * kept so every port is checked exactly at the boundaries. The last section of exp's, expm1's, - * log's and log10's files is another kind of input: a few witnesses of one-step mutants of the - * C that the others miss ({@code MutantsTest}), which are not hard to round. + * The published hard-to-round inputs for {@code function} ({@code "exp"}, {@code "expm1"}, {@code + * "log"}, {@code "log10"}, {@code "log1p"}, {@code "sinh"}, {@code "cosh"}, {@code "asin"}, + * {@code "atan"}, {@code "acos"}), from the test resource {@code hard-cases/.txt}, + * whose header names the sources. At each the exact result lies very close to a rounding + * boundary, where a dropped correction term or a reassociated sum, an error far below one ulp, is + * most likely to change the returned double. A port matching fdlibm step for step matches {@code + * StrictMath} on them as on any input. For exp's planted faults they caught nothing that uniform + * draws miss, and fewer of them flip (the commit adding them has the counts); they are kept so + * every port is checked exactly at the boundaries. The last section of exp's, expm1's, log's and + * log10's files is another kind of input: a few witnesses of one-step mutants of the C that the + * others miss ({@code MutantsTest}), which are not hard to round. */ static double[] hardCases(String function) { String resource = "hard-cases/" + function + ".txt"; diff --git a/src/test/java/io/github/vecbricks/vfdlibm/Nightly.java b/src/test/java/io/github/vecbricks/vfdlibm/Nightly.java index 3048be7..066abaa 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/Nightly.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/Nightly.java @@ -163,7 +163,10 @@ enum Function implements Subject { ASIN("asin", StrictMath::asin, List.of( new Arm("VFdlibm.asin", VFdlibm::asin, VFdlibm::asin))), ATAN("atan", StrictMath::atan, List.of( - new Arm("VFdlibm.atan", VFdlibm::atan, VFdlibm::atan))); + new Arm("VFdlibm.atan", VFdlibm::atan, VFdlibm::atan))), + // As asin: in the table, and not in the night's `all=` list in nightly.yml yet. + ACOS("acos", StrictMath::acos, List.of( + new Arm("VFdlibm.acos", VFdlibm::acos, VFdlibm::acos))); final String id; final DoubleUnaryOperator oracle; @@ -183,7 +186,7 @@ static Function of(String id) { } throw new IllegalArgumentException( "unknown function '" + id + "'; known: exp, expm1, log, log10, log1p, sinh, cosh," - + " asin, atan"); + + " asin, atan, acos"); } @Override diff --git a/src/test/java/io/github/vecbricks/vfdlibm/PlantedFaultTest.java b/src/test/java/io/github/vecbricks/vfdlibm/PlantedFaultTest.java index 0282ead..ff2ee38 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/PlantedFaultTest.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/PlantedFaultTest.java @@ -47,6 +47,7 @@ class PlantedFaultTest { CATCHERS.putAll(Log1pTest.faultCatchers()); CATCHERS.putAll(SinhTest.faultCatchers()); CATCHERS.putAll(AsinTest.faultCatchers()); + CATCHERS.putAll(AcosTest.faultCatchers()); CATCHERS.putAll(CoshTest.faultCatchers()); CATCHERS.putAll(AtanTest.faultCatchers()); } diff --git a/src/test/java/io/github/vecbricks/vfdlibm/Sweep.java b/src/test/java/io/github/vecbricks/vfdlibm/Sweep.java index ba7cffd..3948629 100644 --- a/src/test/java/io/github/vecbricks/vfdlibm/Sweep.java +++ b/src/test/java/io/github/vecbricks/vfdlibm/Sweep.java @@ -24,11 +24,11 @@ * decides its branches on the high word (exp's and expm1's filters, reductions and tiny tests; * log's subnormal, non-finite and significand tests, which log10 shares; log1p's; sinh's tiny, 1 * and 22; cosh's tiny, 0.5 ln2 and 22; atan's tiny, 7/16, 11/16, 19/16, 39/16 and 2^66), so - * every such decision is taken by some input here. asin's (2^-27, 0.5, 0.975 and 1) are taken by - * a sweep of it run by hand; asin is in {@code Nightly}'s table and not yet in the night's list. - * The low word of the third input is {@code - * mix(seed + hi * 0x9e3779b97f4a7c15L)}, so any input of any part is reproducible from the seed - * alone, whatever the parts and threads. + * every such decision is taken by some input here. asin's (2^-27, 0.5, 0.975 and 1) and acos's + * (the constant return at 2^-57's word, 0.5 and 1) can be taken by a sweep of each run by hand; + * both are in {@code Nightly}'s table and not yet in the night's list. The low word of the + * third input is {@code mix(seed + hi * 0x9e3779b97f4a7c15L)}, so any input of any part is + * reproducible from the seed alone, whatever the parts and threads. * Taking every high-word branch is not detecting every moved split: a split one step off on the * high word changes few of these inputs (SKILLS.md, "The nightly sweep and fuzz"), and the fuzz, * which draws the neighbourhood of each split, is what catches it. diff --git a/src/test/resources/io/github/vecbricks/vfdlibm/hard-cases/acos.txt b/src/test/resources/io/github/vecbricks/vfdlibm/hard-cases/acos.txt new file mode 100644 index 0000000..fda68a7 --- /dev/null +++ b/src/test/resources/io/github/vecbricks/vfdlibm/hard-cases/acos.txt @@ -0,0 +1,1594 @@ +# Published hard-to-round inputs for acos, one double per line as its raw bits in hex +# (Double.doubleToRawLongBits), read by Inputs.hardCases("acos"). Lines starting with # are +# comments. Only the input values are taken from the source below; they are numeric facts. +# +# At such an input the exact acos(x) lies unusually close to a rounding boundary of binary64 +# (a midpoint between two doubles for round-to-nearest, a double itself for the directed +# modes), so an implementation's last few rounding errors decide which double it returns. For a +# port that follows fdlibm's operations exactly they are no harder than any other input; their +# use here is that a dropped correction term or a reassociated sum, a change far below one ulp, +# is most likely to flip the result exactly at these points. +# +# Section 1: V. Lefevre, hard-to-round cases in round-to-nearest, file testlibm-data (updated +# 2020-11-27), https://www.vinc17.net/research/testlibm/testlibm-data.xz, from the page +# https://www.vinc17.net/research/testlibm/, which states no licence or reuse terms. Every +# line for "acs" in mode N, in the file's order, written by dev/testlibm-extract.py (python3 -I +# dev/testlibm-extract.py acs acos testlibm-data.xz), which rechecks each line with 400-digit +# decimal arithmetic (Python's decimal module: a Taylor series of atan after halving the angle, +# pi from Machin's formula, and acos(x) as pi/2 - asin(x), asin(x) as atan(x / sqrt(1 - x^2))) +# before printing it: every input is a double, the file's result is acos(x) rounded to nearest, +# and the file's direction bit is the 54th bit of the exact acos(x). Measured by the same run: +# of these 1569 inputs 1265 have fewer than 40 bits after the round bit pointing at the midpoint +# (the fewest is 1 bit), so most of them are not hard to round; the file keeps every line. All +# are positive, between 0.0143 and 1 less 2^-50 or so (the largest is 0.999999999999999), 41 +# of them below 0.5 and the rest above it: acos is not odd, and the tests also draw the negated +# inputs, which reach the branch of x < -0.5. +0x3fe022efc1ed056d +0x3fe064abf8e63253 +0x3fc08e9c87f4b0a6 +0x3fd08f067eee444d +0x3f90ac3566d3857c +0x3fe0bf1aef3b811e +0x3fe0e5dc0380efd6 +0x3fe11b3c109f983b +0x3fc182be1fd47c31 +0x3fd18ad9c9ee503c +0x3fc1d85e1704d11d +0x3fb246d2ca0e55f4 +0x3fe297c587bf1e61 +0x3fe2d1c0b731db15 +0x3fd307b45ef23cd1 +0x3fd3109569949702 +0x3fc321c97e3ee0e9 +0x3fd337b43d2813a6 +0x3fe348a4d5aadaaa +0x3fe3760eb5fda2ac +0x3fe3e3bf2c2f1a34 +0x3fe3e8a769bc4417 +0x3fe4182199998587 +0x3fd425a5aef1cfdf +0x3fe428f5397da473 +0x3fe4612aa586780a +0x3fe4dfcfd597c997 +0x3fc4e9225303b632 +0x3fd510244f46e4fb +0x3fe514cb1fa465ba +0x3fb53ea6c7255e88 +0x3fd55b38ebe6ec7b +0x3fe583cb62c62616 +0x3fe58ac8a84aee21 +0x3fa59d20f7f204a5 +0x3fe5a57158563512 +0x3fe5bc58fb3c83b1 +0x3fe5c31768b3484c +0x3fd5f3fafd6ce419 +0x3fe5ff86073f2956 +0x3fd6050a8577b67f +0x3fd669e3b8dd4fdc +0x3fe66b809d1810fd +0x3fe6772dfb4dc94c +0x3fe6ac81851c2ee9 +0x3fe7097b10828724 +0x3fe71190ca7b2f4d +0x3fd719544a5cb7c0 +0x3fe7245f2c380b2b +0x3fc7362bb8917b7b +0x3fe73d4d6fc78c90 +0x3fe75175653f5338 +0x3fe77745105a9023 +0x3fa778b3973d7aba +0x3fe77cfb0650b4c6 +0x3fe7d28b81494b94 +0x3fc7feb75dd4278c +0x3fe814e02d432368 +0x3fe886aae40de13b +0x3fd89bcbb849676a +0x3fe900bd01c3c504 +0x3fe90c88688e3e00 +0x3fe90d094c374fd2 +0x3fe954d2221a4c1c +0x3fe9614a7844912e +0x3fe97d63fb521eff +0x3fe9a0eb3f8c2295 +0x3fe9ea329dfa3579 +0x3fd9ff3c144d74a4 +0x3fea12c237680f2d +0x3fea27d610e12eda +0x3fea40c2b7b1efd8 +0x3fea8ad73d7c3654 +0x3fdac29073584cc7 +0x3fead031c97a70ab +0x3fdad30ac9d76eac +0x3feb35237e85971b +0x3fcb3e8a381276fe +0x3feb4bf7da652f2a +0x3feb8c3a38e039d1 +0x3feb9bfc28ff7271 +0x3feb9ea6ed02a207 +0x3febb2d7d6c0bec4 +0x3febed00067e5446 +0x3febfa89f8f6bc8b +0x3fec05af88427395 +0x3fec15aa293be744 +0x3fec2611137a739f +0x3fec2e782abdbf98 +0x3fec4e3f3917c55c +0x3fec52fc2b95f709 +0x3fec6104f1c291d0 +0x3fec64b29956dc8a +0x3fcc65a6dfcb81ac +0x3fec6bfb5dbf4f1e +0x3fec7cc6937fe404 +0x3fec7eca00582955 +0x3fdc81a8d4008c0c +0x3fec8ea271609f71 +0x3fec995f078a9f7a +0x3feca597f5bdab9d +0x3fecab5d0cc3a027 +0x3fecafd5e8642a9e +0x3fecb0af75e1643f +0x3fecc97ba01952ed +0x3fecdb479429003d +0x3fecde963b35c6b7 +0x3fece2672da911ed +0x3fece4601451ebef +0x3fece6d3fcc95ede +0x3fecefbc3d7af3cb +0x3fecf7bf3d3aa9f5 +0x3fed0959e502ed1f +0x3fed17b7f6733d17 +0x3fcd18f3b5c96858 +0x3fed2a0f24ea7ad7 +0x3fed42939062fa6a +0x3fed4cf839ea46ab +0x3fed584d4f697edf +0x3f8d652a9b8f530c +0x3fed76c4882a9deb +0x3fed7fe3d99b7eb6 +0x3fed7ff372514ef1 +0x3fed8c4003a52a88 +0x3fed92a795955bf5 +0x3fcd99b31ecaf793 +0x3fed99f0672c1b45 +0x3fed9b8574a743d4 +0x3fdda298764ace52 +0x3feda314e0896d55 +0x3fedabc8460062e4 +0x3fedac1cd875676b +0x3fedb0ba1589bc8f +0x3f9dbd7b9e27ed71 +0x3fedc0fc20e8653f +0x3fedce3b4d53f901 +0x3fedde23ef81df56 +0x3fede245d75cf1ce +0x3fede3c60ead9f74 +0x3fedea3df6c67b3b +0x3fedeb4466cee512 +0x3fedec3ee115ecb3 +0x3fedf318e78ff1b8 +0x3fedf403a1c72356 +0x3fee04b5aa168efc +0x3fee0692f573a991 +0x3fee0c9a22040128 +0x3fee19d6d13c5ce2 +0x3fee1cfd7125fbce +0x3fee1edeb7180e2a +0x3fee2a24f128541b +0x3fee3a2af63fbaa8 +0x3fee3d3f741b22d8 +0x3fee40aa2a3da32e +0x3fee42088b88cac9 +0x3fee45a1c93651ec +0x3fee63a50440b91b +0x3fee6b694aecf365 +0x3fee6cc2466f8268 +0x3fee73fcef2ebe4f +0x3fee7a12d40a4851 +0x3fee7a47bcc52a2e +0x3fee806c4aa6d1ba +0x3fde99e186eafd22 +0x3fee9b3d9826d2e7 +0x3fde9cf882fca50d +0x3fee9dde6c482a35 +0x3feea222c20e8374 +0x3feeab9b8f538918 +0x3feeb57d5616d797 +0x3feeb83505ee846f +0x3feebdfa17957b3a +0x3feebf754a9a799e +0x3feec1ec34ae82ce +0x3feec5e97c56face +0x3feecf9bb42a5bfb +0x3feedf0749f8c79c +0x3feee3e92ef31621 +0x3feee8f254ea3056 +0x3fceef6d61805521 +0x3feef68a25d5f70d +0x3feefb6446f1ccfe +0x3fef055ecf162ea6 +0x3fef10472f44c9c1 +0x3fef155f1c05035d +0x3fef158c77300e52 +0x3fdf18fcd1797e5a +0x3fef1bf7b8269a96 +0x3fef24627ee270b9 +0x3fef26d5bd65f51d +0x3fef27d2309f649c +0x3fef29065e73c758 +0x3fef2a06565274a2 +0x3fef2afa93f4026f +0x3fef2d64180511f9 +0x3fef2e02e26b0abe +0x3fef335b29c05035 +0x3fef33e0d3578449 +0x3fef3408f7c83d96 +0x3fef34bf0e66f680 +0x3fef394fe16108dd +0x3fef3a5108837c89 +0x3fef3b48653cef13 +0x3fef3bccd5f31638 +0x3fef43e438469a7f +0x3fef46ab5308a6bc +0x3fef472af6610ff9 +0x3fef4bc85ead8040 +0x3fef5474dc6adad4 +0x3fef57531a180735 +0x3fef575501fa3d93 +0x3fef5d0e6b4aeff8 +0x3fef66d95877295d +0x3fef67b12de1ad7d +0x3fef68aded3b7d95 +0x3fef6edfd0989a97 +0x3fef715648a8cf1b +0x3fef75e69134b33d +0x3fef7b4282ebd7a7 +0x3fef7f92ea522854 +0x3fef809c9d96514f +0x3fef861a1f202467 +0x3fef896d69e796c0 +0x3fef8af1729c9905 +0x3fef8ce98852747e +0x3fef8fa9fe16bd49 +0x3fef902a23474262 +0x3fef95d0903aab52 +0x3fef96abb929f2f5 +0x3fef98a82755ad3a +0x3fef9aa76e3e04c8 +0x3fef9d3325b408af +0x3fef9ec961c30747 +0x3fef9fc6a30a6c99 +0x3fefa19f26883694 +0x3fefa1ee3008d169 +0x3fefa45f01f4a355 +0x3fefa7433ec6a921 +0x3fefa7584d21d297 +0x3fefa7a894b2e9d1 +0x3fefaad6d27476d2 +0x3fefaf417c2d2a77 +0x3fefb1feca736011 +0x3fefb71f227817ce +0x3fefb9452c5004eb +0x3fefbc6971e96bcc +0x3fefbd442941fe2c +0x3fefbeee286220aa +0x3fefc03293bfd09a +0x3fefc07e1de6caf6 +0x3fefc0ea80f1ca92 +0x3fefc11ebdcfe64a +0x3fefc4cee6ad8720 +0x3fefc5768f78a9f5 +0x3fefc7f58f58f86a +0x3fefc85b2929c1ca +0x3fefc85e2d701003 +0x3fefc91e749ef69b +0x3fefc9debd7d7227 +0x3fefca5fae4e573c +0x3fefcca7e91c654c +0x3fefceee9b425e79 +0x3fefcfff9dc42c74 +0x3fefd08635b266b4 +0x3fefd1e22fcda439 +0x3fefd1f59faa968b +0x3fefd2fc398ee733 +0x3fefd3068bb89011 +0x3fefd33fb45a1fdb +0x3fefd4d993b1965c +0x3fefd51ca90662e8 +0x3fefd56bf828ddcf +0x3fefd5dfe0139bc5 +0x3fefd714bde15457 +0x3fefd809c9a4f39c +0x3fefd86ad8069d31 +0x3fefd90f89156669 +0x3fefdb117f893544 +0x3fefde19ed7c6051 +0x3fefe07388a05858 +0x3fefe074f87a01ad +0x3fefe129b99560b9 +0x3fefe17e182bd2f8 +0x3fefe2263b1d6dbb +0x3fefe2607e9e4f00 +0x3fefe2798efe41e6 +0x3fefe341a70294bf +0x3fefe3b397d0b362 +0x3fefe44a5c048986 +0x3fefe45700ce8047 +0x3fefe6e50907042e +0x3fefe73e74519006 +0x3fefe77a90ac63dd +0x3fefe8dd1ede65b1 +0x3fefe8ed0bc7a390 +0x3fefe8edc46f7d6d +0x3fefe9813794a2c3 +0x3fefe9838c9d5564 +0x3fefea3876cf35a7 +0x3fefeab12f2c864f +0x3fefeb1730cc1b7a +0x3fefeb857c288055 +0x3fefebf8563674e1 +0x3fefecc98e95f4ac +0x3fefece3319e4315 +0x3fefeeca7ab99a61 +0x3fefeed39e1671ac +0x3fefeef028d13237 +0x3feff0769553bdee +0x3feff0aab9aff095 +0x3feff108f5f666a4 +0x3feff11a7e5c87c6 +0x3feff131a7d7b8f3 +0x3feff1450efb2a38 +0x3feff176cfc7c3c6 +0x3feff1c909ee0c25 +0x3feff1f68b5e4a5b +0x3feff219f925a07a +0x3feff28379d18ddb +0x3feff29b0e57ed34 +0x3feff34ce47eaf49 +0x3feff3c209a40323 +0x3feff4562d9bab16 +0x3feff46a64889526 +0x3feff47343325454 +0x3feff4cb65cd0943 +0x3feff4cdd0487aa7 +0x3feff4e065528756 +0x3feff53c009b88d1 +0x3feff56a3e878eea +0x3feff56c508a2453 +0x3feff59c8e711b39 +0x3feff5c5374cc2c7 +0x3feff5e66f2f0cf4 +0x3feff5eba78c051f +0x3feff621a9d41c88 +0x3feff63c066c9c36 +0x3feff668abdf5793 +0x3feff6740bc774ab +0x3feff6791997f7a4 +0x3feff69844ee11d0 +0x3feff7246ae4537f +0x3feff72b6a903259 +0x3feff755142b5c0b +0x3feff7ff7efd6a6c +0x3feff83d237b93f7 +0x3feff84939b32591 +0x3feff8ac3d4d4bbb +0x3feff8ad6fe41216 +0x3feff93f84e0f9d6 +0x3feff94136cfed37 +0x3feff9445c731be8 +0x3feff95569c9b7bb +0x3feff9763900c879 +0x3feff9781a879c93 +0x3feff9aa53d91ca3 +0x3feff9cd30816b5b +0x3feff9d8ff0a353e +0x3feffa11f592cae7 +0x3feffa48c4e4e860 +0x3feffa77f2c17fad +0x3feffa8e55ecfb0e +0x3feffaacef3c8c74 +0x3feffac7427ef706 +0x3feffadbd370dbac +0x3feffafce65ec3b4 +0x3feffb09474b9962 +0x3feffb09eb79a114 +0x3feffb33d0b8221f +0x3feffb46f71d6481 +0x3feffb5fdd2cd200 +0x3feffb76ba632c40 +0x3fdffbbd82b5ad23 +0x3feffbd7b58f70f4 +0x3feffbeffb72cb57 +0x3feffc04b5885cb5 +0x3feffc2963e3e17e +0x3feffc3b2f19c863 +0x3feffc3fb8570b55 +0x3feffc45d7c8803d +0x3feffc4f5a7d3046 +0x3feffc4fdc7186cf +0x3feffc5aafe6423f +0x3feffc6a529143d9 +0x3feffc7cf118e52a +0x3feffc97cc5264df +0x3feffca86f6a1474 +0x3feffcae07ea3433 +0x3feffcb0f34b9133 +0x3feffcc532faac28 +0x3feffce8f78f891d +0x3feffcebb5298934 +0x3feffcf6bf4ed76a +0x3feffcfb8409bac0 +0x3feffd0f9b3c9f9e +0x3feffd2ce94613d7 +0x3feffd2e4561513f +0x3feffd2fdfdcb485 +0x3feffd39a3083ae2 +0x3feffd3fb40faa7c +0x3feffd425929e738 +0x3feffd4aaf4ce6e6 +0x3feffd50868b7267 +0x3feffd688f1e330f +0x3feffd79bfc90b58 +0x3feffd8c806bf8d8 +0x3feffd8fb0a748f7 +0x3feffd96533d180f +0x3feffd9b3231b8b1 +0x3feffd9f5a9a1b1a +0x3feffdc3e017c02e +0x3feffdd324b17394 +0x3feffdd93b3e470a +0x3feffde7b1bcf6c0 +0x3feffde9473f6ff0 +0x3feffdf3fbe9641d +0x3feffdf9bd9b52ed +0x3feffe048968aa7d +0x3feffe057aec92d6 +0x3feffe0af186e2e2 +0x3feffe0fe0fd4938 +0x3feffe1b2b290fd5 +0x3feffe1b58c7df40 +0x3feffe1f1368a7ab +0x3feffe3ae0f2a899 +0x3feffe3efc5aed55 +0x3feffe3fb7c87258 +0x3feffe474987d994 +0x3feffe627f21b509 +0x3feffe646f781fe9 +0x3feffe69700e7802 +0x3feffe7879f51f20 +0x3feffe87499b8f66 +0x3feffe92624b9c62 +0x3feffe96bbe9c7fe +0x3feffe978749f474 +0x3feffea864bd8003 +0x3feffeaa163fba66 +0x3feffeaeb242fcd4 +0x3feffeb317a1b8df +0x3feffeb8633994c7 +0x3feffec6fa5a4f33 +0x3feffed182d8ba88 +0x3feffed22104ce81 +0x3feffed79a290c19 +0x3feffeda0aa89281 +0x3feffedafc1338ca +0x3feffedf3433fbd3 +0x3feffef2370b30d2 +0x3fefff0193e7818a +0x3fefff0d623f9127 +0x3fefff0e0026c77b +0x3fefff1428c913b0 +0x3fefff14ac4a94be +0x3fefff15a484f49a +0x3fefff174d83d5c8 +0x3fefff1aa7c1567a +0x3fefff1b6a15323a +0x3fefff21584ec0a2 +0x3fefff243f12da5e +0x3fefff2475257ba0 +0x3fefff2b59c90f1e +0x3fefff2cd185ff6b +0x3fefff2db8955141 +0x3fefff33306bbc7f +0x3fefff34f5326f91 +0x3fefff35982aed88 +0x3fefff368fc64eaa +0x3fefff3697eac75b +0x3fefff37ef657778 +0x3fefff38696b4cec +0x3fefff42bd16a254 +0x3fefff433db67233 +0x3fefff4f92fd84a3 +0x3fefff576b833e83 +0x3fefff630dcb5242 +0x3fefff635dc87bac +0x3fefff647557cc88 +0x3fefff663bd3cc45 +0x3fefff6843af1a18 +0x3fefff6ba62cdfcc +0x3fefff6cec96f8fc +0x3fefff6f60b15fed +0x3fefff6fe1e47bd7 +0x3fefff719841f171 +0x3fefff723f126ad6 +0x3fefff7925e7d840 +0x3fefff7ba8eda08e +0x3fefff7d9ffda59c +0x3fefff7fcb550c4c +0x3fefff8197e2e004 +0x3fefff82ef62039e +0x3fefff8602cd2dc0 +0x3fefff8cea011702 +0x3fefff900e0a2656 +0x3fefff9a498e3009 +0x3fefff9ca428b7a0 +0x3fefffa056e1de78 +0x3fefffa1669b2470 +0x3fefffa2c6d51159 +0x3fefffa44770b823 +0x3fefffa72cc28a7f +0x3fefffaa82d18c4f +0x3fefffabc46c5be7 +0x3fefffafd04b1b2a +0x3fefffb2069a4044 +0x3fefffb35106c6dd +0x3fefffb398384980 +0x3fefffb7427d0395 +0x3fefffb85cf3ed6f +0x3fefffba3dfe85af +0x3fefffbdff12b4b0 +0x3fefffbedfe8fd4b +0x3fefffbef90215eb +0x3fefffc023d378b6 +0x3fefffc182eca17f +0x3fefffc5173020f6 +0x3fefffc539e6a954 +0x3fefffc5b916051a +0x3fefffc5d010e8f9 +0x3fefffc73472be51 +0x3fefffc7d256437b +0x3fefffc801c090a1 +0x3fefffc84c2e31f1 +0x3fefffc86f515c43 +0x3fefffc920fc6812 +0x3fefffca06a3f652 +0x3fefffca3a09bd39 +0x3fefffcaa893be27 +0x3fefffcbc64d39d0 +0x3fefffcd3cc531b1 +0x3fefffcd4ac8147a +0x3fefffcde5fe63c8 +0x3fefffd15c741a2e +0x3fefffd165e56a01 +0x3fefffd231ff009d +0x3fefffd345d09389 +0x3fefffd3cc6add2e +0x3fefffd43ef5edd5 +0x3fefffd528968308 +0x3fefffd5b8f933c9 +0x3fefffd6607fb823 +0x3fefffd85b63c5d8 +0x3fefffd85f90ad63 +0x3fefffd8a95806d1 +0x3fefffda964bc4b4 +0x3fefffdad3dcb1fc +0x3fefffdbeb4d0cc8 +0x3fefffdc9e63da82 +0x3fefffde3a70ecbe +0x3fefffde3ff227c7 +0x3fefffde408023b9 +0x3fefffde763284b6 +0x3fefffdfd0cf5270 +0x3fefffe05d946d1f +0x3fefffe19233817f +0x3fefffe2167f7948 +0x3fefffe3bbc74760 +0x3fefffe3e569b6f5 +0x3fefffe4e8ea9c06 +0x3fefffe50fbd7326 +0x3fefffe5f5188e42 +0x3fefffe5fb9e8e35 +0x3fefffe633b2436f +0x3fefffe73991d5c9 +0x3fefffe7882d6354 +0x3fefffe78bb45601 +0x3fefffe8ae5d7246 +0x3fefffe9b97b3953 +0x3fefffea42bfbd16 +0x3fefffeb10f3ef0f +0x3fefffeb64cb608e +0x3fefffeb849a36a2 +0x3fefffeb8667bff6 +0x3fefffece214f00a +0x3fefffed31dc7e8d +0x3fefffed52c4449a +0x3fefffef471c4940 +0x3fefffefb0b0d71f +0x3feffff00eeccad1 +0x3feffff0459eaa7d +0x3feffff0d1b49a5c +0x3feffff10de1f257 +0x3feffff1499a2eb2 +0x3feffff18cd9e2bd +0x3feffff1e90eeb20 +0x3feffff2502af072 +0x3feffff26e475cc6 +0x3feffff318b744a2 +0x3feffff353649039 +0x3feffff3ab8dfa23 +0x3feffff429cd6e2c +0x3feffff4813a4d7e +0x3feffff4de068655 +0x3feffff53940daf4 +0x3feffff53f543e0e +0x3feffff5d2d25bcc +0x3feffff5d4031ae1 +0x3feffff5f170a66a +0x3feffff62156a9e9 +0x3feffff663bb0175 +0x3feffff69dabd036 +0x3feffff6a59c3472 +0x3feffff740dc8e17 +0x3feffff74b2f09cd +0x3feffff750769294 +0x3feffff758dc971c +0x3feffff7ab32d07e +0x3feffff7e1f31e99 +0x3feffff7eb579365 +0x3feffff825bd9bb1 +0x3feffff8493b7517 +0x3feffff875a17a41 +0x3feffff89f859011 +0x3feffff8a9facfc1 +0x3feffff9afbd9e67 +0x3feffff9e9feecfe +0x3feffffa1463c98c +0x3feffffa4005339c +0x3feffffa54cb96af +0x3feffffa8c89f204 +0x3feffffabed28a9d +0x3feffffaf676000d +0x3feffffb339df803 +0x3feffffb515d49f6 +0x3feffffb61f7338c +0x3feffffb75c4d388 +0x3feffffb7c2a3b36 +0x3feffffb8d022f72 +0x3feffffbd341ca3b +0x3feffffbfea66116 +0x3feffffc026c4c48 +0x3feffffc1c8cdd1a +0x3feffffc2f7e5183 +0x3feffffc3692e300 +0x3feffffc68a7aebc +0x3feffffc9afab291 +0x3feffffca739b63a +0x3feffffcabc1d310 +0x3feffffcae98713e +0x3feffffcb0dc351c +0x3feffffcdc34f6b5 +0x3feffffcf275c48f +0x3feffffcf63181a3 +0x3feffffcfb70ccb7 +0x3feffffd042d9934 +0x3feffffd06342e6a +0x3feffffd35726eab +0x3feffffd45401f5a +0x3feffffd63eba885 +0x3feffffd834586fa +0x3feffffd898f2bc2 +0x3feffffd94e09234 +0x3feffffd98c48328 +0x3feffffd99fbed83 +0x3feffffd9b8c35b2 +0x3feffffdae0373df +0x3feffffdcbfacbec +0x3feffffdcebc3f66 +0x3feffffddd87d205 +0x3feffffdec8ac32a +0x3feffffdf3fb18a7 +0x3feffffdf913bed5 +0x3feffffe0fe52649 +0x3feffffe11c0f247 +0x3feffffe16381d2c +0x3feffffe1af59769 +0x3feffffe1fd460d9 +0x3feffffe22864787 +0x3feffffe2448b880 +0x3feffffe2563f942 +0x3feffffe3808d8ae +0x3feffffe3a8951de +0x3feffffe3b247b2f +0x3feffffe4eededf9 +0x3feffffe4f4c005c +0x3feffffe51041ddc +0x3feffffe5da5bdd5 +0x3feffffe608e2368 +0x3feffffe724f29a3 +0x3feffffe75079380 +0x3feffffe78d96c87 +0x3feffffe79505836 +0x3feffffe9d43a958 +0x3feffffea2f9fecc +0x3feffffeb6d3c12f +0x3feffffeb73b775b +0x3feffffebdc0fd60 +0x3feffffec05569cb +0x3feffffed59faf9f +0x3feffffeda196a6e +0x3feffffedf18e25b +0x3feffffeec631b97 +0x3feffffef098cd9d +0x3feffffef16bc8de +0x3feffffef74e1a25 +0x3fefffff03b8e79d +0x3fefffff05aa0ef3 +0x3fefffff1039980b +0x3fefffff11c181be +0x3fefffff12cfe92e +0x3fefffff1690e9de +0x3fefffff1a80780b +0x3fefffff1d4d5ea8 +0x3fefffff2184e732 +0x3fefffff25de19d5 +0x3fefffff263cbdaf +0x3fefffff2642f9ac +0x3fefffff29b50373 +0x3fefffff2a62a6be +0x3fefffff2bfec92c +0x3fefffff2e6a1368 +0x3fefffff2ec55c79 +0x3fefffff2ff5192b +0x3fefffff34c93e09 +0x3fefffff35f24b2e +0x3fefffff3634acd6 +0x3fefffff366920d9 +0x3fefffff39da3c26 +0x3fefffff3a245e4e +0x3fefffff414cd248 +0x3fefffff419085d1 +0x3fefffff41cdb117 +0x3fefffff4b94db58 +0x3fefffff4f6f16c8 +0x3fefffff530b2c4d +0x3fefffff54cd14d6 +0x3fefffff56007dd7 +0x3fefffff5afd849f +0x3fefffff5c1b3b1d +0x3fefffff5c3ee810 +0x3fefffff5e751fe4 +0x3fefffff6034783e +0x3fefffff61a686df +0x3fefffff62b71fc4 +0x3fefffff6499096e +0x3fefffff669f908e +0x3fefffff67623ae5 +0x3fefffff684ee098 +0x3fefffff7ac85bab +0x3fefffff7c15c413 +0x3fefffff7c3eecf8 +0x3fefffff7dd56bac +0x3fefffff7f85a941 +0x3fefffff7fb1ae3a +0x3fefffff80453794 +0x3fefffff8e16ef84 +0x3fefffff92e63695 +0x3fefffff964d8571 +0x3fefffff989494da +0x3fefffff998a103b +0x3fefffff9bd11040 +0x3fefffff9c67d664 +0x3fefffff9e64c721 +0x3fefffff9e918ef5 +0x3fefffff9ea0bca3 +0x3fefffff9f5cbb8d +0x3fefffffa0f30ebf +0x3fefffffa254d383 +0x3fefffffa49637b0 +0x3fefffffa81f54d1 +0x3fefffffab7e7738 +0x3fefffffad6c24a5 +0x3fefffffb5fd4883 +0x3fefffffb65d7144 +0x3fefffffb710e1dc +0x3fefffffbddb9b2a +0x3fefffffbe7eb89e +0x3fefffffbf6aa7ac +0x3fefffffc0726fac +0x3fefffffc1d568a6 +0x3fefffffc1ecb05f +0x3fefffffc2806a55 +0x3fefffffc2a067c1 +0x3fefffffc34dcba5 +0x3fefffffc3982e64 +0x3fefffffc48662a8 +0x3fefffffc51c1554 +0x3fefffffc5a9a687 +0x3fefffffc6740718 +0x3fefffffc67a52e8 +0x3fefffffc6ebae98 +0x3fefffffc7745d96 +0x3fefffffc820c200 +0x3fefffffc86d5cf7 +0x3fefffffc90de2b9 +0x3fefffffc9e28841 +0x3fefffffca009980 +0x3fefffffca3e0c22 +0x3fefffffce58c4cb +0x3fefffffce6264e1 +0x3fefffffcf6ce8cc +0x3fefffffcf7fc378 +0x3fefffffd5a4edfd +0x3fefffffd733d0a2 +0x3fefffffd74659ee +0x3fefffffd8ac59d0 +0x3fefffffd91d8e15 +0x3fefffffd97ff43e +0x3fefffffdd75efd5 +0x3fefffffddc0aba4 +0x3fefffffddd08ed5 +0x3fefffffdea3264b +0x3fefffffe00016b4 +0x3fefffffe1cd6d67 +0x3fefffffe213ad3d +0x3fefffffe305b72a +0x3fefffffe45fe8c3 +0x3fefffffe4659674 +0x3fefffffe56cbc65 +0x3fefffffe6c14399 +0x3fefffffe75205c9 +0x3fefffffeb1a5dc5 +0x3fefffffeb7594bf +0x3fefffffec97826e +0x3fefffffed2cc0c5 +0x3fefffffedc50ba4 +0x3fefffffef402e38 +0x3fefffffefb2fcf0 +0x3feffffff02ff985 +0x3feffffff045418b +0x3feffffff07fbfaf +0x3feffffff084ccaa +0x3feffffff0ea835e +0x3feffffff14fa80d +0x3feffffff159e1b0 +0x3feffffff15d4020 +0x3feffffff1667b55 +0x3feffffff1d4dd04 +0x3feffffff209ad20 +0x3feffffff24a36c8 +0x3feffffff26fdb3d +0x3feffffff28e95a3 +0x3feffffff29aec6f +0x3feffffff2fa1dc7 +0x3feffffff30b4814 +0x3feffffff3549c5b +0x3feffffff3b3dab0 +0x3feffffff3b6b6ed +0x3feffffff3f0d46e +0x3feffffff41543e5 +0x3feffffff432d469 +0x3feffffff50d9761 +0x3feffffff52ce94f +0x3feffffff563ef70 +0x3feffffff5e2cdab +0x3feffffff61ba405 +0x3feffffff61cbcd8 +0x3feffffff67de3d3 +0x3feffffff6bb29a6 +0x3feffffff71cfb55 +0x3feffffff71d12aa +0x3feffffff7830bdd +0x3feffffff783ca2f +0x3feffffff7b6c98a +0x3feffffff7dd361b +0x3feffffff7f497e4 +0x3feffffff7fcd36d +0x3feffffff803b437 +0x3feffffff80f8147 +0x3feffffff8190403 +0x3feffffff8761486 +0x3feffffff87f5dbc +0x3feffffff8aaab4f +0x3feffffff8f6ae31 +0x3feffffff932187c +0x3feffffff9332217 +0x3feffffff9ab6bbf +0x3feffffff9b29c8f +0x3feffffff9cc5d14 +0x3feffffff9dafa96 +0x3feffffffa14c719 +0x3feffffffa33c2f3 +0x3feffffffa77cf84 +0x3feffffffa7ef0bf +0x3feffffffac1f68c +0x3feffffffadd60ea +0x3feffffffaf3043b +0x3feffffffb0d5090 +0x3feffffffb19df3e +0x3feffffffb26fce5 +0x3feffffffb32c6bc +0x3feffffffb40670f +0x3feffffffb54f4a9 +0x3feffffffb8da2af +0x3feffffffb9c21b1 +0x3feffffffbc2988d +0x3feffffffbdd3c37 +0x3feffffffbf89caa +0x3feffffffc082c48 +0x3feffffffc0d45a6 +0x3feffffffc324a13 +0x3feffffffc4aa7dd +0x3feffffffc583e89 +0x3feffffffc58a771 +0x3feffffffc5b15fb +0x3feffffffc5f5121 +0x3feffffffc623d73 +0x3feffffffc82e580 +0x3feffffffc99b8f6 +0x3feffffffc9efb91 +0x3feffffffc9f4868 +0x3feffffffcabef2d +0x3feffffffcac7586 +0x3feffffffcd32ca0 +0x3feffffffcd583ab +0x3feffffffcd7a9e9 +0x3feffffffcd7abd9 +0x3feffffffce88645 +0x3feffffffd070324 +0x3feffffffd12394a +0x3feffffffd27eb6d +0x3feffffffd2d5eb6 +0x3feffffffd3527ed +0x3feffffffd37968a +0x3feffffffd45dfa3 +0x3feffffffd4620ec +0x3feffffffd50ada7 +0x3feffffffd555c18 +0x3feffffffd591bdf +0x3feffffffd5f0e75 +0x3feffffffd67fa57 +0x3feffffffd6f6b81 +0x3feffffffd7110e7 +0x3feffffffd74c23a +0x3feffffffd843c8b +0x3feffffffd87947f +0x3feffffffd8e4b2d +0x3feffffffd99b21b +0x3feffffffda35a44 +0x3feffffffda8e06f +0x3feffffffdaa9545 +0x3feffffffdc32c1e +0x3feffffffdd17bb5 +0x3feffffffdd3e990 +0x3feffffffde4fbae +0x3feffffffdeb03ed +0x3feffffffdece095 +0x3feffffffe028e07 +0x3feffffffe030c6d +0x3feffffffe1aed28 +0x3feffffffe22a742 +0x3feffffffe30a978 +0x3feffffffe5b9f6e +0x3feffffffe6da0e3 +0x3feffffffe93fe78 +0x3feffffffe94b0f9 +0x3feffffffe9a11ed +0x3feffffffea3de14 +0x3feffffffeb3e866 +0x3feffffffeb5c456 +0x3feffffffebd3f96 +0x3feffffffebe52a2 +0x3feffffffecb0e1d +0x3feffffffecfe387 +0x3feffffffed8f626 +0x3feffffffedb1450 +0x3feffffffedda7f6 +0x3feffffffedea789 +0x3feffffffee6485a +0x3feffffffefc3c2e +0x3fefffffff003263 +0x3fefffffff00d500 +0x3fefffffff04c491 +0x3fefffffff092e7b +0x3fefffffff0db268 +0x3fefffffff0ee491 +0x3fefffffff0f9e9d +0x3fefffffff1001c1 +0x3fefffffff11e696 +0x3fefffffff13e164 +0x3fefffffff156eea +0x3fefffffff19a33f +0x3fefffffff1cc807 +0x3fefffffff1ecc22 +0x3fefffffff21ed6f +0x3fefffffff2234d5 +0x3fefffffff23bdaa +0x3fefffffff24a4da +0x3fefffffff26e3cd +0x3fefffffff28a96e +0x3fefffffff2d2fcc +0x3fefffffff33a84d +0x3fefffffff340919 +0x3fefffffff34e55d +0x3fefffffff3738ba +0x3fefffffff3a0eab +0x3fefffffff401645 +0x3fefffffff401e82 +0x3fefffffff43efa8 +0x3fefffffff440b94 +0x3fefffffff443d27 +0x3fefffffff482ea5 +0x3fefffffff57e29a +0x3fefffffff5827ec +0x3fefffffff59261d +0x3fefffffff597d3b +0x3fefffffff59adf0 +0x3fefffffff5ed869 +0x3fefffffff61d0da +0x3fefffffff62370f +0x3fefffffff6a1b94 +0x3fefffffff6c1839 +0x3fefffffff6f82f1 +0x3fefffffff721fec +0x3fefffffff77f827 +0x3fefffffff7bfb3c +0x3fefffffff8329e5 +0x3fefffffff839775 +0x3fefffffff86cf70 +0x3fefffffff8c2b09 +0x3fefffffff8f9516 +0x3fefffffff918ada +0x3fefffffff98535f +0x3fefffffff9dd5e0 +0x3fefffffffa3c0a9 +0x3fefffffffa3c453 +0x3fefffffffa3d1ef +0x3fefffffffa4937e +0x3fefffffffa5e430 +0x3fefffffffa68ef6 +0x3fefffffffa89f58 +0x3fefffffffa9b9ae +0x3fefffffffacd3d2 +0x3fefffffffacf31c +0x3fefffffffb57ceb +0x3fefffffffb690ca +0x3fefffffffb8acbe +0x3fefffffffb96fa2 +0x3fefffffffbb7f20 +0x3fefffffffbca490 +0x3fefffffffbda860 +0x3fefffffffbf0a93 +0x3fefffffffbf323e +0x3fefffffffbfa96b +0x3fefffffffc109ee +0x3fefffffffc25785 +0x3fefffffffc3a6f1 +0x3fefffffffc4253f +0x3fefffffffc44f85 +0x3fefffffffc5abc1 +0x3fefffffffc7389b +0x3fefffffffc74136 +0x3fefffffffc89216 +0x3fefffffffc8b8aa +0x3fefffffffca3335 +0x3fefffffffcb10f0 +0x3fefffffffcc68b3 +0x3fefffffffcd3585 +0x3fefffffffce80a6 +0x3fefffffffce89b1 +0x3fefffffffd00c1d +0x3fefffffffd0210a +0x3fefffffffd0e394 +0x3fefffffffd218fb +0x3fefffffffd3132e +0x3fefffffffd324e6 +0x3fefffffffd360fd +0x3fefffffffd366bb +0x3fefffffffd4d8c2 +0x3fefffffffd5013f +0x3fefffffffd73ea0 +0x3fefffffffd764a5 +0x3fefffffffd8240d +0x3fefffffffdae996 +0x3fefffffffdb2135 +0x3fefffffffdb6d1b +0x3fefffffffdca07d +0x3fefffffffdcd6d5 +0x3fefffffffdd394f +0x3fefffffffdd6adb +0x3fefffffffde3700 +0x3fefffffffde6848 +0x3fefffffffdfcb84 +0x3fefffffffe164c9 +0x3fefffffffe19447 +0x3fefffffffe218d3 +0x3fefffffffe26f00 +0x3fefffffffe2b543 +0x3fefffffffe40e00 +0x3fefffffffe47285 +0x3fefffffffe5cfc9 +0x3fefffffffe65f00 +0x3fefffffffe6ade4 +0x3fefffffffe77d5d +0x3fefffffffe8a192 +0x3fefffffffe903ee +0x3fefffffffe9f72c +0x3fefffffffea0700 +0x3fefffffffea1c18 +0x3fefffffffeb9e46 +0x3fefffffffec4ecd +0x3fefffffffed6700 +0x3fefffffffedf38d +0x3fefffffffef3f76 +0x3feffffffff0342f +0x3feffffffff0cc0a +0x3feffffffff2696a +0x3feffffffff2af06 +0x3feffffffff2b87b +0x3feffffffff2f59f +0x3feffffffff2fd38 +0x3feffffffff3025a +0x3feffffffff33f28 +0x3feffffffff39c58 +0x3feffffffff4171f +0x3feffffffff43192 +0x3feffffffff54896 +0x3feffffffff5aa5d +0x3feffffffff5e71a +0x3feffffffff60f6b +0x3feffffffff63528 +0x3feffffffff655e5 +0x3feffffffff65dbb +0x3feffffffff66318 +0x3feffffffff6b7fe +0x3feffffffff6bf79 +0x3feffffffff73a60 +0x3feffffffff73e77 +0x3feffffffff750c6 +0x3feffffffff76ced +0x3feffffffff79431 +0x3feffffffff79644 +0x3feffffffff7d027 +0x3feffffffff7e6e0 +0x3feffffffff7e916 +0x3feffffffff81970 +0x3feffffffff85896 +0x3feffffffff88af3 +0x3feffffffff8971e +0x3feffffffff92006 +0x3feffffffff92d95 +0x3feffffffff94636 +0x3feffffffff94690 +0x3feffffffff94784 +0x3feffffffff957bd +0x3feffffffff95f1b +0x3feffffffff9d9d9 +0x3feffffffffa06af +0x3feffffffffa24f5 +0x3feffffffffa4bd5 +0x3feffffffffa72db +0x3feffffffffa7b83 +0x3feffffffffa817d +0x3feffffffffaa7c1 +0x3feffffffffad2c2 +0x3feffffffffae16e +0x3feffffffffae301 +0x3feffffffffaf4dd +0x3feffffffffb1636 +0x3feffffffffb4cb9 +0x3feffffffffb4f5e +0x3feffffffffb8161 +0x3feffffffffb96a6 +0x3feffffffffba3fa +0x3feffffffffbba06 +0x3feffffffffbbdf5 +0x3feffffffffc002e +0x3feffffffffc113f +0x3feffffffffc1839 +0x3feffffffffc193a +0x3feffffffffc2047 +0x3feffffffffc2969 +0x3feffffffffc2987 +0x3feffffffffc411c +0x3feffffffffc59fe +0x3feffffffffc6207 +0x3feffffffffc67aa +0x3feffffffffc694c +0x3feffffffffc6afd +0x3feffffffffc8566 +0x3feffffffffc859e +0x3feffffffffc8d39 +0x3feffffffffc8eb4 +0x3feffffffffc9cc2 +0x3feffffffffc9f26 +0x3feffffffffcafcd +0x3feffffffffcb631 +0x3feffffffffccde0 +0x3feffffffffcd72a +0x3feffffffffcd8f4 +0x3feffffffffcddef +0x3feffffffffce21d +0x3feffffffffce6bc +0x3feffffffffcf388 +0x3feffffffffd03bf +0x3feffffffffd06e9 +0x3feffffffffd1800 +0x3feffffffffd2b68 +0x3feffffffffd3309 +0x3feffffffffd33c2 +0x3feffffffffd39e3 +0x3feffffffffd5832 +0x3feffffffffd5c1f +0x3feffffffffd71bd +0x3feffffffffd8c7c +0x3feffffffffd984a +0x3feffffffffd9fb8 +0x3feffffffffda901 +0x3feffffffffda97d +0x3feffffffffdc0ca +0x3feffffffffdceda +0x3feffffffffddf06 +0x3feffffffffded57 +0x3feffffffffe0866 +0x3feffffffffe21a5 +0x3feffffffffe292d +0x3feffffffffe3989 +0x3feffffffffe4085 +0x3feffffffffe41fb +0x3feffffffffe4490 +0x3feffffffffe47b6 +0x3feffffffffe4bd5 +0x3feffffffffe4cf3 +0x3feffffffffe5035 +0x3feffffffffe5466 +0x3feffffffffe6980 +0x3feffffffffe6c52 +0x3feffffffffe7243 +0x3feffffffffe7aa9 +0x3feffffffffe7b70 +0x3feffffffffe82af +0x3feffffffffe9002 +0x3feffffffffe9ed2 +0x3feffffffffea826 +0x3feffffffffeb54f +0x3feffffffffebc9c +0x3feffffffffec32d +0x3feffffffffec342 +0x3feffffffffecc74 +0x3feffffffffecec6 +0x3feffffffffedb02 +0x3feffffffffeeab3 +0x3feffffffffef11f +0x3feffffffffefed4 +0x3fefffffffff0041 +0x3fefffffffff05eb +0x3fefffffffff095f +0x3fefffffffff0e2a +0x3fefffffffff1286 +0x3fefffffffff168f +0x3fefffffffff176a +0x3fefffffffff17ea +0x3fefffffffff188e +0x3fefffffffff1892 +0x3fefffffffff1cef +0x3fefffffffff1d40 +0x3fefffffffff231c +0x3fefffffffff27ac +0x3fefffffffff2a39 +0x3fefffffffff2e3d +0x3fefffffffff2f8d +0x3fefffffffff3752 +0x3fefffffffff376a +0x3fefffffffff3948 +0x3fefffffffff3ac5 +0x3fefffffffff3b43 +0x3fefffffffff40d7 +0x3fefffffffff41a2 +0x3fefffffffff448f +0x3fefffffffff49c0 +0x3fefffffffff4b39 +0x3fefffffffff4ee9 +0x3fefffffffff4ef9 +0x3fefffffffff5b24 +0x3fefffffffff6488 +0x3fefffffffff6510 +0x3fefffffffff7080 +0x3fefffffffff75fd +0x3fefffffffff76aa +0x3fefffffffff79ba +0x3fefffffffff7a21 +0x3fefffffffff7df5 +0x3fefffffffff858f +0x3fefffffffff8876 +0x3fefffffffff89f4 +0x3fefffffffff8cb8 +0x3fefffffffff90de +0x3fefffffffff91c0 +0x3fefffffffff9374 +0x3fefffffffff94d7 +0x3fefffffffff9f20 +0x3fefffffffff9fbd +0x3fefffffffffa4aa +0x3fefffffffffa5b8 +0x3fefffffffffa690 +0x3fefffffffffab15 +0x3fefffffffffacd9 +0x3fefffffffffade5 +0x3fefffffffffaf33 +0x3fefffffffffb07c +0x3fefffffffffb15d +0x3fefffffffffb183 +0x3fefffffffffb1c5 +0x3fefffffffffb30b +0x3fefffffffffb344 +0x3fefffffffffb3c5 +0x3fefffffffffb712 +0x3fefffffffffb8e7 +0x3fefffffffffbaac +0x3fefffffffffbbad +0x3fefffffffffc18e +0x3fefffffffffc3eb +0x3fefffffffffc43e +0x3fefffffffffc4e7 +0x3fefffffffffc598 +0x3fefffffffffc6ff +0x3fefffffffffc72b +0x3fefffffffffc7ee +0x3fefffffffffc85b +0x3fefffffffffc91c +0x3fefffffffffc923 +0x3fefffffffffc933 +0x3fefffffffffc93d +0x3fefffffffffc947 +0x3fefffffffffcad7 +0x3fefffffffffcf16 +0x3fefffffffffcfa7 +0x3fefffffffffcfb5 +0x3fefffffffffcfbe +0x3fefffffffffd03f +0x3fefffffffffd0dc +0x3fefffffffffd16f +0x3fefffffffffd2d0 +0x3fefffffffffd48e +0x3fefffffffffd6af +0x3fefffffffffd93d +0x3fefffffffffda41 +0x3fefffffffffda96 +0x3fefffffffffdb79 +0x3fefffffffffdb83 +0x3fefffffffffdbdb +0x3fefffffffffdbf2 +0x3fefffffffffdca9 +0x3fefffffffffdd0d +0x3fefffffffffdda6 +0x3fefffffffffddc9 +0x3fefffffffffddff +0x3fefffffffffde20 +0x3fefffffffffde5a +0x3fefffffffffde7e +0x3fefffffffffded8 +0x3fefffffffffdf40 +0x3fefffffffffe006 +0x3fefffffffffe248 +0x3fefffffffffe312 +0x3fefffffffffe3dd +0x3fefffffffffe3e3 +0x3fefffffffffe401 +0x3fefffffffffe479 +0x3fefffffffffe553 +0x3fefffffffffe5ab +0x3fefffffffffe6df +0x3fefffffffffe84f +0x3fefffffffffec26 +0x3fefffffffffecb9 +0x3fefffffffffed1e +0x3fefffffffffed55 +0x3fefffffffffee3a +0x3fefffffffffee6a +0x3fefffffffffee7e +0x3fefffffffffee93 +0x3fefffffffffef09 +0x3fefffffffffef5f +0x3fefffffffffef8a +0x3feffffffffff026 +0x3feffffffffff030 +0x3feffffffffff049 +0x3feffffffffff062 +0x3feffffffffff085 +0x3feffffffffff0b3 +0x3feffffffffff0ec +0x3feffffffffff0f0 +0x3feffffffffff0f1 +0x3feffffffffff0f8 +0x3feffffffffff124 +0x3feffffffffff143 +0x3feffffffffff16d +0x3feffffffffff1f1 +0x3feffffffffff200 +0x3feffffffffff21b +0x3feffffffffff230 +0x3feffffffffff235 +0x3feffffffffff367 +0x3feffffffffff376 +0x3feffffffffff39d +0x3feffffffffff441 +0x3feffffffffff462 +0x3feffffffffff48c +0x3feffffffffff495 +0x3feffffffffff4a0 +0x3feffffffffff4ac +0x3feffffffffff4c1 +0x3feffffffffff4e7 +0x3feffffffffff52f +0x3feffffffffff537 +0x3feffffffffff55d +0x3feffffffffff564 +0x3feffffffffff57e +0x3feffffffffff5c3 +0x3feffffffffff5ce +0x3feffffffffff5df +0x3feffffffffff603 +0x3feffffffffff63d +0x3feffffffffff64a +0x3feffffffffff6a8 +0x3feffffffffff6f5 +0x3feffffffffff761 +0x3feffffffffff773 +0x3feffffffffff80c +0x3feffffffffff82e +0x3feffffffffff862 +0x3feffffffffff894 +0x3feffffffffff8a2 +0x3feffffffffff8d8 +0x3feffffffffff900 +0x3feffffffffff901 +0x3feffffffffff96c +0x3feffffffffff998 +0x3feffffffffff9d7 +0x3feffffffffff9d9 +0x3feffffffffffa2f +0x3feffffffffffa49 +0x3feffffffffffa93 +0x3feffffffffffab4 +0x3feffffffffffae0 +0x3feffffffffffaf6 +0x3feffffffffffb1f +0x3feffffffffffb4c +0x3feffffffffffb94 +0x3feffffffffffbc3 +0x3feffffffffffbcc +0x3feffffffffffc09 +0x3feffffffffffc4e +0x3feffffffffffc4f +0x3feffffffffffc53 +0x3feffffffffffc84 +0x3feffffffffffc94 +0x3feffffffffffc95 +0x3feffffffffffcb2 +0x3feffffffffffcb7 +0x3feffffffffffcd2 +0x3feffffffffffcd9 +0x3feffffffffffcea +0x3feffffffffffcf9 +0x3feffffffffffd23 +0x3feffffffffffd39 +0x3feffffffffffd3e +0x3feffffffffffd5b +0x3feffffffffffd5d +0x3feffffffffffd67 +0x3feffffffffffd90 +0x3feffffffffffd97 +0x3feffffffffffda0 +0x3feffffffffffda7 +0x3feffffffffffdbe +0x3feffffffffffdc4 +0x3feffffffffffdc8 +0x3feffffffffffde7 +0x3feffffffffffdfc +0x3feffffffffffe16 +0x3feffffffffffe1d +0x3feffffffffffe2e +0x3feffffffffffe57 +0x3feffffffffffe58 +0x3feffffffffffe60 +0x3feffffffffffe61 +0x3feffffffffffe72 +0x3feffffffffffe73 +0x3feffffffffffe8b +0x3feffffffffffe93 +0x3feffffffffffe9e +0x3feffffffffffea1 +0x3feffffffffffea8 +0x3feffffffffffeab +0x3feffffffffffeac +0x3feffffffffffeb2 +0x3feffffffffffeb9 +0x3feffffffffffec9 +0x3feffffffffffed5 +0x3feffffffffffed6 +0x3feffffffffffede +0x3feffffffffffee2 +0x3feffffffffffee6 +0x3feffffffffffeea +0x3feffffffffffef6 +0x3feffffffffffefb +0x3fefffffffffff01 +0x3fefffffffffff04 +0x3fefffffffffff0b +0x3fefffffffffff0d +0x3fefffffffffff12 +0x3fefffffffffff1f +0x3fefffffffffff20 +0x3fefffffffffff21 +0x3fefffffffffff29 +0x3fefffffffffff2a +0x3fefffffffffff2b +0x3fefffffffffff2f +0x3fefffffffffff35 +0x3fefffffffffff38 +0x3fefffffffffff39 +0x3fefffffffffff3d +0x3fefffffffffff41 +0x3fefffffffffff46 +0x3fefffffffffff4d +0x3fefffffffffff4f +0x3fefffffffffff55 +0x3fefffffffffff57 +0x3fefffffffffff61 +0x3fefffffffffff69 +0x3fefffffffffff6d +0x3fefffffffffff74 +0x3fefffffffffff79 +0x3fefffffffffff7b +0x3fefffffffffff7d +0x3fefffffffffff7f +0x3fefffffffffff84 +0x3fefffffffffff8e +0x3fefffffffffff91 +0x3fefffffffffff93 +0x3fefffffffffff94 +0x3fefffffffffff96 +0x3fefffffffffff99 +0x3fefffffffffff9a +0x3fefffffffffff9b +0x3fefffffffffff9f +0x3fefffffffffffa0 +0x3fefffffffffffa2 +0x3fefffffffffffa6 +0x3fefffffffffffae +0x3fefffffffffffb0 +0x3fefffffffffffb6 +0x3fefffffffffffb7 +0x3fefffffffffffb8 +0x3fefffffffffffbd +0x3fefffffffffffbe +0x3fefffffffffffc0 +0x3fefffffffffffc3 +0x3fefffffffffffc4 +0x3fefffffffffffc7 +0x3fefffffffffffc8 +0x3fefffffffffffcb +0x3fefffffffffffcc +0x3fefffffffffffcd +0x3fefffffffffffce +0x3fefffffffffffcf +0x3fefffffffffffd1 +0x3fefffffffffffd2 +0x3fefffffffffffd5 +0x3fefffffffffffd6 +0x3fefffffffffffd9 +0x3fefffffffffffdb +0x3fefffffffffffdc +0x3fefffffffffffe0 +0x3fefffffffffffe1 +0x3fefffffffffffe2 +0x3fefffffffffffe4 +0x3fefffffffffffe5 +0x3fefffffffffffe7 +0x3fefffffffffffe8 +0x3fefffffffffffe9 +0x3fefffffffffffec +0x3fefffffffffffed +0x3fefffffffffffef +0x3feffffffffffff0 +0x3feffffffffffff3 +0x3feffffffffffff4 +0x3feffffffffffff7