diff options
Diffstat (limited to 'src/Specific/solinas64_2e416m2e208m1_9limbs')
23 files changed, 0 insertions, 326 deletions
diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/CurveParameters.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/CurveParameters.v deleted file mode 100644 index cedac9027..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/CurveParameters.v +++ /dev/null @@ -1,39 +0,0 @@ -Require Import Crypto.Specific.Framework.RawCurveParameters. -Require Import Crypto.Util.LetIn. - -(*** -Modulus : 2^416 - 2^208 - 1 -Base: 46 + 2/9 -***) - -Definition curve : CurveParameters := - {| - sz := 9%nat; - base := 46 + 2/9; - bitwidth := 64; - s := 2^416; - c := [(1, 1); (2^208, 1)]; - carry_chains := Some [[3; 8]; [4; 0; 5; 1; 6; 2; 7; 3; 8]; [4; 0]]%nat; - - a24 := None; - coef_div_modulus := Some 2%nat; - - goldilocks := Some true; - karatsuba := None; - montgomery := false; - freeze := Some true; - ladderstep := false; - - mul_code := None; - - square_code := None; - - upper_bound_of_exponent_loose := None; - upper_bound_of_exponent_tight := None; - allowable_bit_widths := None; - freeze_extra_allowable_bit_widths := None; - modinv_fuel := None - |}. - -Ltac extra_prove_mul_eq _ := idtac. -Ltac extra_prove_square_eq _ := idtac. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/Synthesis.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/Synthesis.v deleted file mode 100644 index 756a7b9a7..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/Synthesis.v +++ /dev/null @@ -1,9 +0,0 @@ -Require Import Crypto.Specific.Framework.SynthesisFramework. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.CurveParameters. - -Module P <: PrePackage. - Definition package : Tag.Context. - Proof. make_Synthesis_package curve extra_prove_mul_eq extra_prove_square_eq. Defined. -End P. - -Module Export S := PackageSynthesis P. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/compiler.sh b/src/Specific/solinas64_2e416m2e208m1_9limbs/compiler.sh deleted file mode 100755 index f2da83ba2..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/compiler.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='64' -Dlimb_weight_gaps_array='{47,46,46,46,47,46,46,46,46}' -Dmodulus_array='{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='52' -Dmodulus_limbs='9' -Dq_mpz='(1_mpz<<416) - (1_mpz<<208) - 1' "$@" diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/compilerxx.sh b/src/Specific/solinas64_2e416m2e208m1_9limbs/compilerxx.sh deleted file mode 100755 index bff5cdbb7..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/compilerxx.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang++ -fbracket-depth=999999 -march=native -mbmi2 -mtune=native -std=gnu++11 -O3 -flto -fuse-ld=lld -fomit-frame-pointer -fwrapv -Wno-attributes -fno-strict-aliasing -Da24_hex='0x3039' -Da24_val='12345' -Da_minus_two_over_four_array='{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x39}' -Dbitwidth='64' -Dlimb_weight_gaps_array='{47,46,46,46,47,46,46,46,46}' -Dmodulus_array='{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='52' -Dmodulus_limbs='9' -Dq_mpz='(1_mpz<<416) - (1_mpz<<208) - 1' "$@" diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.c b/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.c deleted file mode 100644 index 98ab4434c..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.c +++ /dev/null @@ -1,30 +0,0 @@ -static void feadd(uint64_t out[9], const uint64_t in1[9], const uint64_t in2[9]) { - { const uint64_t x18 = in1[8]; - { const uint64_t x19 = in1[7]; - { const uint64_t x17 = in1[6]; - { const uint64_t x15 = in1[5]; - { const uint64_t x13 = in1[4]; - { const uint64_t x11 = in1[3]; - { const uint64_t x9 = in1[2]; - { const uint64_t x7 = in1[1]; - { const uint64_t x5 = in1[0]; - { const uint64_t x34 = in2[8]; - { const uint64_t x35 = in2[7]; - { const uint64_t x33 = in2[6]; - { const uint64_t x31 = in2[5]; - { const uint64_t x29 = in2[4]; - { const uint64_t x27 = in2[3]; - { const uint64_t x25 = in2[2]; - { const uint64_t x23 = in2[1]; - { const uint64_t x21 = in2[0]; - out[0] = (x5 + x21); - out[1] = (x7 + x23); - out[2] = (x9 + x25); - out[3] = (x11 + x27); - out[4] = (x13 + x29); - out[5] = (x15 + x31); - out[6] = (x17 + x33); - out[7] = (x19 + x35); - out[8] = (x18 + x34); - }}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.v deleted file mode 100644 index 4ffeda906..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/feadd.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition add : - { add : feBW_tight -> feBW_tight -> feBW_loose - | forall a b, phiBW_loose (add a b) = F.add (phiBW_tight a) (phiBW_tight b) }. -Proof. - Set Ltac Profiling. - Time synthesize_add (). - Show Ltac Profile. -Time Defined. - -Print Assumptions add. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.log b/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.log deleted file mode 100644 index 3b92b1c5c..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.log +++ /dev/null @@ -1,7 +0,0 @@ -λ x x0 : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x18, x19, x17, x15, x13, x11, x9, x7, x5, (x34, x35, x33, x31, x29, x27, x25, x23, x21))%core, - ((x18 + x34), (x19 + x35), (x17 + x33), (x15 + x31), (x13 + x29), (x11 + x27), (x9 + x25), (x7 + x23), (x5 + x21))) -(x, x0)%core - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t) diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.v deleted file mode 100644 index da893766e..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/feaddDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.feadd. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display add. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarry.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarry.v deleted file mode 100644 index b3bdf913c..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarry.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition carry : - { carry : feBW_loose -> feBW_tight - | forall a, phiBW_tight (carry a) = (phiBW_loose a) }. -Proof. - Set Ltac Profiling. - Time synthesize_carry (). - Show Ltac Profile. -Time Defined. - -Print Assumptions carry. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarryDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarryDisplay.v deleted file mode 100644 index 198474fff..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fecarryDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.fecarry. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display carry. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/femul.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/femul.v deleted file mode 100644 index cf8274d11..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/femul.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition mul : - { mul : feBW_loose -> feBW_loose -> feBW_tight - | forall a b, phiBW_tight (mul a b) = F.mul (phiBW_loose a) (phiBW_loose b) }. -Proof. - Set Ltac Profiling. - Time synthesize_mul (). - Show Ltac Profile. -Time Defined. - -Print Assumptions mul. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/femulDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/femulDisplay.v deleted file mode 100644 index 1e28b3376..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/femulDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.femul. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display mul. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquare.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquare.v deleted file mode 100644 index 9a2b32d83..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquare.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition square : - { square : feBW_loose -> feBW_tight - | forall a, phiBW_tight (square a) = F.mul (phiBW_loose a) (phiBW_loose a) }. -Proof. - Set Ltac Profiling. - Time synthesize_square (). - Show Ltac Profile. -Time Defined. - -Print Assumptions square. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquareDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquareDisplay.v deleted file mode 100644 index e2035e25b..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesquareDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.fesquare. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display square. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.c b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.c deleted file mode 100644 index 684af71ed..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.c +++ /dev/null @@ -1,30 +0,0 @@ -static void fesub(uint64_t out[9], const uint64_t in1[9], const uint64_t in2[9]) { - { const uint64_t x18 = in1[8]; - { const uint64_t x19 = in1[7]; - { const uint64_t x17 = in1[6]; - { const uint64_t x15 = in1[5]; - { const uint64_t x13 = in1[4]; - { const uint64_t x11 = in1[3]; - { const uint64_t x9 = in1[2]; - { const uint64_t x7 = in1[1]; - { const uint64_t x5 = in1[0]; - { const uint64_t x34 = in2[8]; - { const uint64_t x35 = in2[7]; - { const uint64_t x33 = in2[6]; - { const uint64_t x31 = in2[5]; - { const uint64_t x29 = in2[4]; - { const uint64_t x27 = in2[3]; - { const uint64_t x25 = in2[2]; - { const uint64_t x23 = in2[1]; - { const uint64_t x21 = in2[0]; - out[0] = ((0xfffffffffffe + x5) - x21); - out[1] = ((0x7ffffffffffe + x7) - x23); - out[2] = ((0x7ffffffffffe + x9) - x25); - out[3] = ((0x7ffffffffffe + x11) - x27); - out[4] = ((0xfffffefffffe + x13) - x29); - out[5] = ((0x7ffffffffffe + x15) - x31); - out[6] = ((0x7ffffffffffe + x17) - x33); - out[7] = ((0x7ffffffffffe + x19) - x35); - out[8] = ((0x7ffffffffffe + x18) - x34); - }}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.v deleted file mode 100644 index bd0cb2eef..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesub.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition sub : - { sub : feBW_tight -> feBW_tight -> feBW_loose - | forall a b, phiBW_loose (sub a b) = F.sub (phiBW_tight a) (phiBW_tight b) }. -Proof. - Set Ltac Profiling. - Time synthesize_sub (). - Show Ltac Profile. -Time Defined. - -Print Assumptions sub. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.log b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.log deleted file mode 100644 index b445fd13f..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.log +++ /dev/null @@ -1,7 +0,0 @@ -λ x x0 : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x18, x19, x17, x15, x13, x11, x9, x7, x5, (x34, x35, x33, x31, x29, x27, x25, x23, x21))%core, - (((0x7ffffffffffe + x18) - x34), ((0x7ffffffffffe + x19) - x35), ((0x7ffffffffffe + x17) - x33), ((0x7ffffffffffe + x15) - x31), ((0xfffffefffffe + x13) - x29), ((0x7ffffffffffe + x11) - x27), ((0x7ffffffffffe + x9) - x25), ((0x7ffffffffffe + x7) - x23), ((0xfffffffffffe + x5) - x21))) -(x, x0)%core - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t) diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.v deleted file mode 100644 index e665443fe..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/fesubDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.fesub. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display sub. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.c b/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.c deleted file mode 100644 index cd35a2c42..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.c +++ /dev/null @@ -1,49 +0,0 @@ -static void freeze(uint64_t out[9], const uint64_t in1[9]) { - { const uint64_t x15 = in1[8]; - { const uint64_t x16 = in1[7]; - { const uint64_t x14 = in1[6]; - { const uint64_t x12 = in1[5]; - { const uint64_t x10 = in1[4]; - { const uint64_t x8 = in1[3]; - { const uint64_t x6 = in1[2]; - { const uint64_t x4 = in1[1]; - { const uint64_t x2 = in1[0]; - { uint64_t x18, uint8_t x19 = Op (Syntax.SubWithGetBorrow 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (0x0, Return x2, 0x7fffffffffff); - { uint64_t x21, uint8_t x22 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x19, Return x4, 0x3fffffffffff); - { uint64_t x24, uint8_t x25 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x22, Return x6, 0x3fffffffffff); - { uint64_t x27, uint8_t x28 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x25, Return x8, 0x3fffffffffff); - { uint64_t x30, uint8_t x31 = Op (Syntax.SubWithGetBorrow 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x28, Return x10, 0x7fffff7fffff); - { uint64_t x33, uint8_t x34 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x31, Return x12, 0x3fffffffffff); - { uint64_t x36, uint8_t x37 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x34, Return x14, 0x3fffffffffff); - { uint64_t x39, uint8_t x40 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x37, Return x16, 0x3fffffffffff); - { uint64_t x42, uint8_t x43 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x40, Return x15, 0x3fffffffffff); - { uint64_t x44 = cmovznz64(x43, 0x0, 0xffffffffffffffffL); - { uint64_t x45 = (x44 & 0x7fffffffffff); - { uint64_t x47, uint8_t x48 = Op (Syntax.AddWithGetCarry 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (0x0, Return x18, Return x45); - { uint64_t x49 = (x44 & 0x3fffffffffff); - { uint64_t x51, uint8_t x52 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x48, Return x21, Return x49); - { uint64_t x53 = (x44 & 0x3fffffffffff); - { uint64_t x55, uint8_t x56 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x52, Return x24, Return x53); - { uint64_t x57 = (x44 & 0x3fffffffffff); - { uint64_t x59, uint8_t x60 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x56, Return x27, Return x57); - { uint64_t x61 = (x44 & 0x7fffff7fffff); - { uint64_t x63, uint8_t x64 = Op (Syntax.AddWithGetCarry 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x60, Return x30, Return x61); - { uint64_t x65 = (x44 & 0x3fffffffffff); - { uint64_t x67, uint8_t x68 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x64, Return x33, Return x65); - { uint64_t x69 = (x44 & 0x3fffffffffff); - { uint64_t x71, uint8_t x72 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x68, Return x36, Return x69); - { uint64_t x73 = (x44 & 0x3fffffffffff); - { uint64_t x75, uint8_t x76 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x72, Return x39, Return x73); - { uint64_t x77 = (x44 & 0x3fffffffffff); - { uint64_t x79, uint8_t _ = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x76, Return x42, Return x77); - out[0] = x47; - out[1] = x51; - out[2] = x55; - out[3] = x59; - out[4] = x63; - out[5] = x67; - out[6] = x71; - out[7] = x75; - out[8] = x79; - }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.v deleted file mode 100644 index a0c5a8941..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/freeze.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition freeze : - { freeze : feBW_tight -> feBW_limbwidths - | forall a, phiBW_limbwidths (freeze a) = phiBW_tight a }. -Proof. - Set Ltac Profiling. - Time synthesize_freeze (). - Show Ltac Profile. -Time Defined. - -Print Assumptions freeze. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.log b/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.log deleted file mode 100644 index afe8bd111..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.log +++ /dev/null @@ -1,35 +0,0 @@ -λ x : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x15, x16, x14, x12, x10, x8, x6, x4, x2)%core, - uint64_t x18, uint8_t x19 = Op (Syntax.SubWithGetBorrow 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (0x0, Return x2, 0x7fffffffffff); - uint64_t x21, uint8_t x22 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x19, Return x4, 0x3fffffffffff); - uint64_t x24, uint8_t x25 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x22, Return x6, 0x3fffffffffff); - uint64_t x27, uint8_t x28 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x25, Return x8, 0x3fffffffffff); - uint64_t x30, uint8_t x31 = Op (Syntax.SubWithGetBorrow 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x28, Return x10, 0x7fffff7fffff); - uint64_t x33, uint8_t x34 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x31, Return x12, 0x3fffffffffff); - uint64_t x36, uint8_t x37 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x34, Return x14, 0x3fffffffffff); - uint64_t x39, uint8_t x40 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x37, Return x16, 0x3fffffffffff); - uint64_t x42, uint8_t x43 = Op (Syntax.SubWithGetBorrow 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x40, Return x15, 0x3fffffffffff); - uint64_t x44 = cmovznz64(x43, 0x0, 0xffffffffffffffffL); - uint64_t x45 = (x44 & 0x7fffffffffff); - uint64_t x47, uint8_t x48 = Op (Syntax.AddWithGetCarry 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (0x0, Return x18, Return x45); - uint64_t x49 = (x44 & 0x3fffffffffff); - uint64_t x51, uint8_t x52 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x48, Return x21, Return x49); - uint64_t x53 = (x44 & 0x3fffffffffff); - uint64_t x55, uint8_t x56 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x52, Return x24, Return x53); - uint64_t x57 = (x44 & 0x3fffffffffff); - uint64_t x59, uint8_t x60 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x56, Return x27, Return x57); - uint64_t x61 = (x44 & 0x7fffff7fffff); - uint64_t x63, uint8_t x64 = Op (Syntax.AddWithGetCarry 47 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x60, Return x30, Return x61); - uint64_t x65 = (x44 & 0x3fffffffffff); - uint64_t x67, uint8_t x68 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x64, Return x33, Return x65); - uint64_t x69 = (x44 & 0x3fffffffffff); - uint64_t x71, uint8_t x72 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x68, Return x36, Return x69); - uint64_t x73 = (x44 & 0x3fffffffffff); - uint64_t x75, uint8_t x76 = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x72, Return x39, Return x73); - uint64_t x77 = (x44 & 0x3fffffffffff); - uint64_t x79, uint8_t _ = Op (Syntax.AddWithGetCarry 46 (Syntax.TWord 3) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 6) (Syntax.TWord 3)) (Return x76, Return x42, Return x77); - (Return x79, Return x75, Return x71, Return x67, Return x63, Return x59, Return x55, Return x51, Return x47)) -x - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType (uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t * uint64_t) diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.v b/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.v deleted file mode 100644 index 91f8418bb..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/freezeDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.solinas64_2e416m2e208m1_9limbs.freeze. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display freeze. diff --git a/src/Specific/solinas64_2e416m2e208m1_9limbs/py_interpreter.sh b/src/Specific/solinas64_2e416m2e208m1_9limbs/py_interpreter.sh deleted file mode 100755 index 268bc14e4..000000000 --- a/src/Specific/solinas64_2e416m2e208m1_9limbs/py_interpreter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -/usr/bin/env python3 "$@" -Dq='2**416 - 2**208 - 1' -Dmodulus_bytes='46 + 2/9' -Da24='121665' |