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:
parent
0d8a5a8131
commit
0dff6df8ed
250 changed files with 12199 additions and 1981 deletions
|
|
@ -639,7 +639,10 @@ TEST_F(StressScenariosTest, ClassicMixedDealerMatchesDoernerShelat)
|
|||
dpf::root_sampler_t<dpf::prg::aes128>{take_root},
|
||||
uint32_t{7}, dpf::xor_wrapper<uint32_t>{0xdeadbeef}, uint32_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,
|
||||
uint32_t{7}, dpf::xor_wrapper<uint32_t>{0xdeadbeef}, uint32_t{42});
|
||||
|
||||
|
|
@ -974,7 +977,10 @@ TEST_F(StressScenariosTest, CmpPackedAtDeepestUnderDoernerShelat)
|
|||
uint32_t{9},
|
||||
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<14>(uint8_t{3}, uint8_t{5}),
|
||||
uint32_t{9},
|
||||
|
|
@ -1455,7 +1461,7 @@ TEST_F(StressScenariosTest, ModintMultilevelWithCmp)
|
|||
// Full-domain cmp on the 12-bit input: true-value 4 below threshold, 1 at/above.
|
||||
for (unsigned q = 0; q < 0x1000u; q += 0x11u)
|
||||
{
|
||||
in_t qi{q};
|
||||
in_t qi{static_cast<in_t::integral_type>(q)};
|
||||
const auto got = dpf::reconstruct(dpf::eval_point(dpf::cmp, k0, qi), dpf::eval_point(dpf::cmp, k1, qi)) & mask;
|
||||
const auto want = (q < 0x2abu) ? uint64_t{4} : uint64_t{1};
|
||||
EXPECT_EQ(got, want) << "q=" << q;
|
||||
|
|
@ -1509,7 +1515,10 @@ TEST_F(StressScenariosTest, DsIdentityManyLevelsMixedWidthsXorAdditiveCmpLt)
|
|||
uint32_t{9},
|
||||
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<8>(dpf::bit::one),
|
||||
dpf::at<16>(uint8_t{3}, dpf::xor_wrapper<uint8_t>{0xa5}),
|
||||
|
|
@ -1551,7 +1560,10 @@ TEST_F(StressScenariosTest, DsIdentityPacked16xU8DeepestGeq)
|
|||
uint32_t{5},
|
||||
dpf::geq(uint16_t{100}, uint16_t{1}));
|
||||
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>(
|
||||
uint8_t{1}, uint8_t{2}, uint8_t{3}, uint8_t{4},
|
||||
|
|
@ -1580,7 +1592,10 @@ TEST_F(StressScenariosTest, DsIdentityClassicMultiLeafXorAdditiveBytes)
|
|||
dpf::root_sampler_t<dpf::prg::aes128>{take_root},
|
||||
uint32_t{7}, dpf::xor_wrapper<uint32_t>{0xdeadbeef});
|
||||
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,
|
||||
uint32_t{7}, dpf::xor_wrapper<uint32_t>{0xdeadbeef});
|
||||
|
||||
|
|
@ -1605,7 +1620,10 @@ TEST_F(StressScenariosTest, DsIdentityIntermediateWildcardConcreteSiblings)
|
|||
dpf::at<16>(uint16_t{5}, wc), // concrete sibling next to the wildcard
|
||||
uint32_t{9});
|
||||
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>(uint16_t{5}, wc),
|
||||
|
|
@ -1637,7 +1655,10 @@ TEST_F(StressScenariosTest, DsIdentityFixedpointAtWithCmp)
|
|||
fp16::from_raw(0x00030000),
|
||||
dpf::lt(uint64_t{1000}));
|
||||
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),
|
||||
fp16::from_raw(0x00030000),
|
||||
|
|
@ -1684,7 +1705,10 @@ TEST_F(StressScenariosTest, DsIdentityAesInteriorLowmcExteriorMultilevel)
|
|||
dpf::root_sampler_t<dpf::prg::aes128>{take_root},
|
||||
dpf::at<12>(uint8_t{9}), uint16_t{4});
|
||||
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<dpf::prg::aes128, dpf::prg::lowmc128>(
|
||||
x0, x1, rng, dpf::at<12>(uint8_t{9}), uint16_t{4});
|
||||
|
||||
|
|
@ -1711,7 +1735,10 @@ TEST_F(StressScenariosTest, DsIdentityWildcardCmpThenAssign)
|
|||
uint32_t{7},
|
||||
dpf::geq(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(x0, x1, rng,
|
||||
dpf::at<12>(uint8_t{5}),
|
||||
uint32_t{7},
|
||||
|
|
@ -1787,7 +1814,10 @@ TEST_F(StressScenariosTest, DsIdentityModintMultilevelXorAdditiveCmp)
|
|||
uint16_t{9},
|
||||
dpf::lt(uint16_t{4}, uint16_t{1}));
|
||||
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<6>(uint8_t{5}, dpf::xor_wrapper<uint8_t>{0x3c}),
|
||||
uint16_t{9},
|
||||
|
|
@ -1817,7 +1847,10 @@ TEST_F(StressScenariosTest, DsIdentityKeywordMultilevel)
|
|||
dpf::root_sampler_t<dpf::prg::aes128>{take_root},
|
||||
dpf::at<6>(uint8_t{1}), uint16_t{2});
|
||||
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<6>(uint8_t{1}), uint16_t{2});
|
||||
|
||||
|
|
@ -2091,7 +2124,10 @@ TEST_F(StressScenariosTest, DsIdentityPackedSmallWildcardAtNonTerminal)
|
|||
dpf::at<14>(w, w, w, w, uint8_t{9}, w, w, w),
|
||||
uint32_t{5});
|
||||
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<14>(w, w, w, w, uint8_t{9}, w, w, w),
|
||||
uint32_t{5});
|
||||
|
|
@ -2174,7 +2210,10 @@ TEST_F(StressScenariosTest, DsIdentityPackedWildcardLowmcExteriorThenAssign)
|
|||
dpf::at<12>(w, w, w, w),
|
||||
uint16_t{77});
|
||||
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<dpf::prg::aes128, dpf::prg::lowmc128>(
|
||||
x0, x1, rng, dpf::at<12>(w, w, w, w), uint16_t{77});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue