diff options
Diffstat (limited to 'src/Specific/montgomery32_2e254m127x2e240m1')
22 files changed, 0 insertions, 338 deletions
diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/CurveParameters.v b/src/Specific/montgomery32_2e254m127x2e240m1/CurveParameters.v deleted file mode 100644 index 04f2fa3e6..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/CurveParameters.v +++ /dev/null @@ -1,39 +0,0 @@ -Require Import Crypto.Specific.Framework.RawCurveParameters. -Require Import Crypto.Util.LetIn. - -(*** -Modulus : 2^254 - 127*2^240 - 1 -Base: 32 -***) - -Definition curve : CurveParameters := - {| - sz := 8%nat; - base := 32; - bitwidth := 32; - s := 2^254; - c := [(1, 1); (127, 2^240)]; - carry_chains := None; - - a24 := None; - coef_div_modulus := None; - - goldilocks := None; - karatsuba := None; - montgomery := true; - freeze := Some false; - 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/montgomery32_2e254m127x2e240m1/Synthesis.v b/src/Specific/montgomery32_2e254m127x2e240m1/Synthesis.v deleted file mode 100644 index 09250bed0..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/Synthesis.v +++ /dev/null @@ -1,9 +0,0 @@ -Require Import Crypto.Specific.Framework.SynthesisFramework. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.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/montgomery32_2e254m127x2e240m1/compiler.sh b/src/Specific/montgomery32_2e254m127x2e240m1/compiler.sh deleted file mode 100755 index f467fe099..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/compiler.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang -fbracket-depth=999999 -march=native -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,0x30,0x39}' -Dbitwidth='32' -Dlimb_weight_gaps_array='{32,32,32,32,32,32,32,32}' -Dmodulus_array='{0x3f,0x80,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,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='32' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<254) - 127*(1_mpz<<240) - 1' "$@" diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/compilerxx.sh b/src/Specific/montgomery32_2e254m127x2e240m1/compilerxx.sh deleted file mode 100755 index 302d8fe76..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/compilerxx.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -clang++ -fbracket-depth=999999 -march=native -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,0x30,0x39}' -Dbitwidth='32' -Dlimb_weight_gaps_array='{32,32,32,32,32,32,32,32}' -Dmodulus_array='{0x3f,0x80,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,0xff,0xff,0xff,0xff}' -Dmodulus_bytes_val='32' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<254) - 127*(1_mpz<<240) - 1' "$@" diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feadd.c b/src/Specific/montgomery32_2e254m127x2e240m1/feadd.c deleted file mode 100644 index 6ffed3913..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feadd.c +++ /dev/null @@ -1,52 +0,0 @@ -static void feadd(uint32_t out[8], const uint32_t in1[8], const uint32_t in2[8]) { - { const uint32_t x16 = in1[7]; - { const uint32_t x17 = in1[6]; - { const uint32_t x15 = in1[5]; - { const uint32_t x13 = in1[4]; - { const uint32_t x11 = in1[3]; - { const uint32_t x9 = in1[2]; - { const uint32_t x7 = in1[1]; - { const uint32_t x5 = in1[0]; - { const uint32_t x30 = in2[7]; - { const uint32_t x31 = in2[6]; - { const uint32_t x29 = in2[5]; - { const uint32_t x27 = in2[4]; - { const uint32_t x25 = in2[3]; - { const uint32_t x23 = in2[2]; - { const uint32_t x21 = in2[1]; - { const uint32_t x19 = in2[0]; - { uint32_t x33; uint8_t x34 = _addcarryx_u32(0x0, x5, x19, &x33); - { uint32_t x36; uint8_t x37 = _addcarryx_u32(x34, x7, x21, &x36); - { uint32_t x39; uint8_t x40 = _addcarryx_u32(x37, x9, x23, &x39); - { uint32_t x42; uint8_t x43 = _addcarryx_u32(x40, x11, x25, &x42); - { uint32_t x45; uint8_t x46 = _addcarryx_u32(x43, x13, x27, &x45); - { uint32_t x48; uint8_t x49 = _addcarryx_u32(x46, x15, x29, &x48); - { uint32_t x51; uint8_t x52 = _addcarryx_u32(x49, x17, x31, &x51); - { uint32_t x54; uint8_t x55 = _addcarryx_u32(x52, x16, x30, &x54); - { uint32_t x57; uint8_t x58 = _subborrow_u32(0x0, x33, 0xffffffff, &x57); - { uint32_t x60; uint8_t x61 = _subborrow_u32(x58, x36, 0xffffffff, &x60); - { uint32_t x63; uint8_t x64 = _subborrow_u32(x61, x39, 0xffffffff, &x63); - { uint32_t x66; uint8_t x67 = _subborrow_u32(x64, x42, 0xffffffff, &x66); - { uint32_t x69; uint8_t x70 = _subborrow_u32(x67, x45, 0xffffffff, &x69); - { uint32_t x72; uint8_t x73 = _subborrow_u32(x70, x48, 0xffffffff, &x72); - { uint32_t x75; uint8_t x76 = _subborrow_u32(x73, x51, 0xffffffff, &x75); - { uint32_t x78; uint8_t x79 = _subborrow_u32(x76, x54, 0x3f80ffff, &x78); - { uint32_t _; uint8_t x82 = _subborrow_u32(x79, x55, 0x0, &_); - { uint32_t x83 = cmovznz32(x82, x78, x54); - { uint32_t x84 = cmovznz32(x82, x75, x51); - { uint32_t x85 = cmovznz32(x82, x72, x48); - { uint32_t x86 = cmovznz32(x82, x69, x45); - { uint32_t x87 = cmovznz32(x82, x66, x42); - { uint32_t x88 = cmovznz32(x82, x63, x39); - { uint32_t x89 = cmovznz32(x82, x60, x36); - { uint32_t x90 = cmovznz32(x82, x57, x33); - out[0] = x90; - out[1] = x89; - out[2] = x88; - out[3] = x87; - out[4] = x86; - out[5] = x85; - out[6] = x84; - out[7] = x83; - }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feadd.v b/src/Specific/montgomery32_2e254m127x2e240m1/feadd.v deleted file mode 100644 index f6105cd33..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feadd.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition add : - { add : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (add a b) = F.add (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_add (). - Show Ltac Profile. -Time Defined. - -Print Assumptions add. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.log b/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.log deleted file mode 100644 index 846e6f58d..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x x0 : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x16, x17, x15, x13, x11, x9, x7, x5, (x30, x31, x29, x27, x25, x23, x21, x19))%core, - uint32_t x33, uint8_t x34 = addcarryx_u32(0x0, x5, x19); - uint32_t x36, uint8_t x37 = addcarryx_u32(x34, x7, x21); - uint32_t x39, uint8_t x40 = addcarryx_u32(x37, x9, x23); - uint32_t x42, uint8_t x43 = addcarryx_u32(x40, x11, x25); - uint32_t x45, uint8_t x46 = addcarryx_u32(x43, x13, x27); - uint32_t x48, uint8_t x49 = addcarryx_u32(x46, x15, x29); - uint32_t x51, uint8_t x52 = addcarryx_u32(x49, x17, x31); - uint32_t x54, uint8_t x55 = addcarryx_u32(x52, x16, x30); - uint32_t x57, uint8_t x58 = subborrow_u32(0x0, x33, 0xffffffff); - uint32_t x60, uint8_t x61 = subborrow_u32(x58, x36, 0xffffffff); - uint32_t x63, uint8_t x64 = subborrow_u32(x61, x39, 0xffffffff); - uint32_t x66, uint8_t x67 = subborrow_u32(x64, x42, 0xffffffff); - uint32_t x69, uint8_t x70 = subborrow_u32(x67, x45, 0xffffffff); - uint32_t x72, uint8_t x73 = subborrow_u32(x70, x48, 0xffffffff); - uint32_t x75, uint8_t x76 = subborrow_u32(x73, x51, 0xffffffff); - uint32_t x78, uint8_t x79 = subborrow_u32(x76, x54, 0x3f80ffff); - uint32_t _, uint8_t x82 = subborrow_u32(x79, x55, 0x0); - uint32_t x83 = cmovznz32(x82, x78, x54); - uint32_t x84 = cmovznz32(x82, x75, x51); - uint32_t x85 = cmovznz32(x82, x72, x48); - uint32_t x86 = cmovznz32(x82, x69, x45); - uint32_t x87 = cmovznz32(x82, x66, x42); - uint32_t x88 = cmovznz32(x82, x63, x39); - uint32_t x89 = cmovznz32(x82, x60, x36); - uint32_t x90 = cmovznz32(x82, x57, x33); - return (x83, x84, x85, x86, x87, x88, x89, x90)) -(x, x0)%core - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.v b/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.v deleted file mode 100644 index a1fa65b73..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feaddDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.feadd. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display add. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/femul.v b/src/Specific/montgomery32_2e254m127x2e240m1/femul.v deleted file mode 100644 index bd4fc0b79..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/femul.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition mul : - { mul : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (mul a b) = F.mul (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_mul (). - Show Ltac Profile. -Time Defined. - -Print Assumptions mul. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/femulDisplay.v b/src/Specific/montgomery32_2e254m127x2e240m1/femulDisplay.v deleted file mode 100644 index c2e8059e0..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/femulDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.femul. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display mul. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fenz.c b/src/Specific/montgomery32_2e254m127x2e240m1/fenz.c deleted file mode 100644 index 744f2aa5f..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fenz.c +++ /dev/null @@ -1,19 +0,0 @@ -static void fenz(ReturnType uint32_t out[1], const uint32_t in1[8]) { - { const uint32_t x13 = in1[7]; - { const uint32_t x14 = in1[6]; - { const uint32_t x12 = in1[5]; - { const uint32_t x10 = in1[4]; - { const uint32_t x8 = in1[3]; - { const uint32_t x6 = in1[2]; - { const uint32_t x4 = in1[1]; - { const uint32_t x2 = in1[0]; - { uint32_t x15 = (x14 | x13); - { uint32_t x16 = (x12 | x15); - { uint32_t x17 = (x10 | x16); - { uint32_t x18 = (x8 | x17); - { uint32_t x19 = (x6 | x18); - { uint32_t x20 = (x4 | x19); - { uint32_t x21 = (x2 | x20); - out[0] = x21; - }}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fenz.v b/src/Specific/montgomery32_2e254m127x2e240m1/fenz.v deleted file mode 100644 index 0c866adb2..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fenz.v +++ /dev/null @@ -1,16 +0,0 @@ -Require Import Coq.ZArith.ZArith. -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.Synthesis. -Local Open Scope Z_scope. - -(* TODO : change this to field once field isomorphism happens *) -Definition nonzero : - { nonzero : feBW_small -> BoundedWord.BoundedWord 1 adjusted_bitwidth bound1 - | forall a, (BoundedWord.BoundedWordToZ _ _ _ (nonzero a) =? 0) = (if Decidable.dec (phiM_small a = F.of_Z m 0) then true else false) }. -Proof. - Set Ltac Profiling. - Time synthesize_nonzero (). - Show Ltac Profile. -Time Defined. - -Print Assumptions nonzero. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.log b/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.log deleted file mode 100644 index c7c1c2df1..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.log +++ /dev/null @@ -1,14 +0,0 @@ -λ x : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint32_t x15 = (x14 | x13); - uint32_t x16 = (x12 | x15); - uint32_t x17 = (x10 | x16); - uint32_t x18 = (x8 | x17); - uint32_t x19 = (x6 | x18); - uint32_t x20 = (x4 | x19); - uint32_t x21 = (x2 | x20); - return x21) -x - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType uint32_t diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.v b/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.v deleted file mode 100644 index b15572fac..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fenzDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.fenz. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display nonzero. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feopp.v b/src/Specific/montgomery32_2e254m127x2e240m1/feopp.v deleted file mode 100644 index 5262d3b30..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feopp.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition opp : - { opp : feBW_small -> feBW_small - | forall a, phiM_small (opp a) = F.opp (phiM_small a) }. -Proof. - Set Ltac Profiling. - Time synthesize_opp (). - Show Ltac Profile. -Time Defined. - -Print Assumptions opp. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.log b/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.log deleted file mode 100644 index 26a60cacc..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint32_t x16, uint8_t x17 = subborrow_u32(0x0, 0x0, x2); - uint32_t x19, uint8_t x20 = subborrow_u32(x17, 0x0, x4); - uint32_t x22, uint8_t x23 = subborrow_u32(x20, 0x0, x6); - uint32_t x25, uint8_t x26 = subborrow_u32(x23, 0x0, x8); - uint32_t x28, uint8_t x29 = subborrow_u32(x26, 0x0, x10); - uint32_t x31, uint8_t x32 = subborrow_u32(x29, 0x0, x12); - uint32_t x34, uint8_t x35 = subborrow_u32(x32, 0x0, x14); - uint32_t x37, uint8_t x38 = subborrow_u32(x35, 0x0, x13); - uint32_t x39 = (uint32_t)cmovznz(x38, 0x0, 0xffffffff); - uint32_t x40 = (x39 & 0xffffffff); - uint32_t x42, uint8_t x43 = addcarryx_u32(0x0, x16, x40); - uint32_t x44 = (x39 & 0xffffffff); - uint32_t x46, uint8_t x47 = addcarryx_u32(x43, x19, x44); - uint32_t x48 = (x39 & 0xffffffff); - uint32_t x50, uint8_t x51 = addcarryx_u32(x47, x22, x48); - uint32_t x52 = (x39 & 0xffffffff); - uint32_t x54, uint8_t x55 = addcarryx_u32(x51, x25, x52); - uint32_t x56 = (x39 & 0xffffffff); - uint32_t x58, uint8_t x59 = addcarryx_u32(x55, x28, x56); - uint32_t x60 = (x39 & 0xffffffff); - uint32_t x62, uint8_t x63 = addcarryx_u32(x59, x31, x60); - uint32_t x64 = (x39 & 0xffffffff); - uint32_t x66, uint8_t x67 = addcarryx_u32(x63, x34, x64); - uint32_t x68 = (x39 & 0x3f80ffff); - uint32_t x70, uint8_t _ = addcarryx_u32(x67, x37, x68); - (Return x70, Return x66, Return x62, Return x58, Return x54, Return x50, Return x46, Return x42)) -x - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.v b/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.v deleted file mode 100644 index 111090a92..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/feoppDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.feopp. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display opp. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fesquare.c b/src/Specific/montgomery32_2e254m127x2e240m1/fesquare.c deleted file mode 100644 index e3345edfe..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fesquare.c +++ /dev/null @@ -1,5 +0,0 @@ -/* WARNING: This file was copied from Specific/CurveParameters/montgomery32/fesquare.c. - If you edit it here, changes will be erased the next time remake_curves.sh is run. */ -static void fesquare(uint32_t *out, const uint32_t *in) { - femul(out, in, in); -} diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fesub.v b/src/Specific/montgomery32_2e254m127x2e240m1/fesub.v deleted file mode 100644 index 6a43cecb4..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fesub.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.Synthesis. - -(* TODO : change this to field once field isomorphism happens *) -Definition sub : - { sub : feBW_small -> feBW_small -> feBW_small - | forall a b, phiM_small (sub a b) = F.sub (phiM_small a) (phiM_small b) }. -Proof. - Set Ltac Profiling. - Time synthesize_sub (). - Show Ltac Profile. -Time Defined. - -Print Assumptions sub. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.log b/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.log deleted file mode 100644 index c36c64d04..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x x0 : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x16, x17, x15, x13, x11, x9, x7, x5, (x30, x31, x29, x27, x25, x23, x21, x19))%core, - uint32_t x33, uint8_t x34 = subborrow_u32(0x0, x5, x19); - uint32_t x36, uint8_t x37 = subborrow_u32(x34, x7, x21); - uint32_t x39, uint8_t x40 = subborrow_u32(x37, x9, x23); - uint32_t x42, uint8_t x43 = subborrow_u32(x40, x11, x25); - uint32_t x45, uint8_t x46 = subborrow_u32(x43, x13, x27); - uint32_t x48, uint8_t x49 = subborrow_u32(x46, x15, x29); - uint32_t x51, uint8_t x52 = subborrow_u32(x49, x17, x31); - uint32_t x54, uint8_t x55 = subborrow_u32(x52, x16, x30); - uint32_t x56 = (uint32_t)cmovznz(x55, 0x0, 0xffffffff); - uint32_t x57 = (x56 & 0xffffffff); - uint32_t x59, uint8_t x60 = addcarryx_u32(0x0, x33, x57); - uint32_t x61 = (x56 & 0xffffffff); - uint32_t x63, uint8_t x64 = addcarryx_u32(x60, x36, x61); - uint32_t x65 = (x56 & 0xffffffff); - uint32_t x67, uint8_t x68 = addcarryx_u32(x64, x39, x65); - uint32_t x69 = (x56 & 0xffffffff); - uint32_t x71, uint8_t x72 = addcarryx_u32(x68, x42, x69); - uint32_t x73 = (x56 & 0xffffffff); - uint32_t x75, uint8_t x76 = addcarryx_u32(x72, x45, x73); - uint32_t x77 = (x56 & 0xffffffff); - uint32_t x79, uint8_t x80 = addcarryx_u32(x76, x48, x77); - uint32_t x81 = (x56 & 0xffffffff); - uint32_t x83, uint8_t x84 = addcarryx_u32(x80, x51, x81); - uint32_t x85 = (x56 & 0x3f80ffff); - uint32_t x87, uint8_t _ = addcarryx_u32(x84, x54, x85); - (Return x87, Return x83, Return x79, Return x75, Return x71, Return x67, Return x63, Return x59)) -(x, x0)%core - : word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → word32 * word32 * word32 * word32 * word32 * word32 * word32 * word32 → ReturnType (uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t * uint32_t) diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.v b/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.v deleted file mode 100644 index 82b7a6c50..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/fesubDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery32_2e254m127x2e240m1.fesub. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display sub. diff --git a/src/Specific/montgomery32_2e254m127x2e240m1/py_interpreter.sh b/src/Specific/montgomery32_2e254m127x2e240m1/py_interpreter.sh deleted file mode 100755 index 4893f7c8e..000000000 --- a/src/Specific/montgomery32_2e254m127x2e240m1/py_interpreter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -/usr/bin/env python3 "$@" -Dq='2**254 - 127*2**240 - 1' -Dmodulus_bytes='32' -Da24='121665' |