Document the new DPF surfaces in one command set, and test the field, half-tree, and multipoint edges.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ryan Henry 2026-09-24 23:18:10 -06:00
parent 0d8a5a8131
commit 0dff6df8ed
250 changed files with 12199 additions and 1981 deletions

View file

@ -447,7 +447,10 @@ TEST_F(IncrementalDpfTest, DealerMatchesDoernerShelat)
dpf::xor_wrapper<uint16_t>{0xcafe});
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<10>(dpf::bit::one),
dpf::at<14>(uint8_t{3}, uint8_t{5}),
@ -458,7 +461,10 @@ TEST_F(IncrementalDpfTest, DealerMatchesDoernerShelat)
EXPECT_TRUE(same_incr_key(dealer.second, ds.second));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadB> rngb{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds2 = dpf::make_dpf_doerner_shelat(x0, x1, rngb,
dpf::at<10>(dpf::bit::one),
dpf::at<14>(uint8_t{3}, uint8_t{5}),
@ -483,7 +489,10 @@ TEST_F(IncrementalDpfTest, IntermediateWildcardSameKey)
uint64_t{42});
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<10>(dpf::bit::one), dpf::at<16>(wc), uint64_t{42});
@ -615,7 +624,10 @@ TEST_F(IncrementalDpfTest, DsEvalAgreesWithDealer)
dpf::at<10>(dpf::bit::one), uint32_t{99});
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<10>(dpf::bit::one), uint32_t{99});
@ -796,7 +808,10 @@ TEST_F(IncrementalDpfTest, FixedpointDealerMatchesDoernerShelat)
fp16::from_raw(0x00030000));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<12>(y, z), dpf::at<16>(wc), fp16::from_raw(0x00030000));
@ -1010,7 +1025,10 @@ TEST_F(IncrementalDpfTest, LocalCwProtocolMatchesDsRandomness)
uint32_t x1 = x ^ x0;
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto via_rng = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<10>(dpf::bit::one), uint32_t{5});
@ -1156,7 +1174,10 @@ TEST_F(IncrementalDpfTest, CmpDealerMatchesDoernerShelat)
dpf::lt(uint64_t{42}));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng,
dpf::at<10>(dpf::bit::one),
dpf::lt(uint64_t{42}));
@ -1335,7 +1356,10 @@ TEST_F(IncrementalDpfTest, CmpValueCwGroupWidthDsParity)
dpf::lt(uint16_t{42}));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(x0, x1, rng, dpf::lt(uint16_t{42}));
using KT = std::decay_t<decltype(dealer.first)>;
@ -1627,7 +1651,10 @@ TEST_F(IncrementalDpfTest, DsWildcardCmpMatchesDealerThenAssign)
dpf::root_sampler_t<dpf::prg::aes128>{take_root},
dpf::lt(dpf::wildcard_value<uint64_t>{}));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(a0, a1, rng,
dpf::lt(dpf::wildcard_value<uint64_t>{}));
@ -1686,7 +1713,10 @@ TEST_F(IncrementalDpfTest, DsWildcardCmpWithAtAndNarrowPayload)
dpf::at<16>(uint16_t{9}),
dpf::lt(dpf::wildcard_value<uint16_t>{}));
reset_tape_roots();
HEDLEY_PRAGMA(GCC diagnostic push)
HEDLEY_PRAGMA(GCC diagnostic ignored "-Wignored-attributes")
dpf::ds_randomness<simde__m128i (*)(), PadA> rng{take_root, {}};
HEDLEY_PRAGMA(GCC diagnostic pop)
auto ds = dpf::make_dpf_doerner_shelat(a0, a1, rng,
dpf::at<16>(uint16_t{9}),
dpf::lt(dpf::wildcard_value<uint16_t>{}));