From 795d24349b9aca1d9732c7b7fcaa505f24fa4bc6 Mon Sep 17 00:00:00 2001 From: jadep Date: Fri, 10 Nov 2017 13:19:57 -0500 Subject: new autogenerated files --- .../montgomery64_2e512m569/CurveParameters.v | 39 ---------------- src/Specific/montgomery64_2e512m569/Synthesis.v | 9 ---- src/Specific/montgomery64_2e512m569/compiler.sh | 4 -- src/Specific/montgomery64_2e512m569/compilerxx.sh | 4 -- src/Specific/montgomery64_2e512m569/feadd.c | 52 ---------------------- src/Specific/montgomery64_2e512m569/feadd.v | 14 ------ .../montgomery64_2e512m569/feaddDisplay.log | 32 ------------- src/Specific/montgomery64_2e512m569/feaddDisplay.v | 4 -- src/Specific/montgomery64_2e512m569/femul.v | 14 ------ src/Specific/montgomery64_2e512m569/femulDisplay.v | 4 -- src/Specific/montgomery64_2e512m569/fenz.c | 19 -------- src/Specific/montgomery64_2e512m569/fenz.v | 16 ------- .../montgomery64_2e512m569/fenzDisplay.log | 14 ------ src/Specific/montgomery64_2e512m569/fenzDisplay.v | 4 -- src/Specific/montgomery64_2e512m569/feopp.v | 14 ------ .../montgomery64_2e512m569/feoppDisplay.log | 32 ------------- src/Specific/montgomery64_2e512m569/feoppDisplay.v | 4 -- src/Specific/montgomery64_2e512m569/fesquare.c | 5 --- src/Specific/montgomery64_2e512m569/fesub.v | 14 ------ .../montgomery64_2e512m569/fesubDisplay.log | 32 ------------- src/Specific/montgomery64_2e512m569/fesubDisplay.v | 4 -- .../montgomery64_2e512m569/py_interpreter.sh | 4 -- 22 files changed, 338 deletions(-) delete mode 100644 src/Specific/montgomery64_2e512m569/CurveParameters.v delete mode 100644 src/Specific/montgomery64_2e512m569/Synthesis.v delete mode 100755 src/Specific/montgomery64_2e512m569/compiler.sh delete mode 100755 src/Specific/montgomery64_2e512m569/compilerxx.sh delete mode 100644 src/Specific/montgomery64_2e512m569/feadd.c delete mode 100644 src/Specific/montgomery64_2e512m569/feadd.v delete mode 100644 src/Specific/montgomery64_2e512m569/feaddDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m569/feaddDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m569/femul.v delete mode 100644 src/Specific/montgomery64_2e512m569/femulDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m569/fenz.c delete mode 100644 src/Specific/montgomery64_2e512m569/fenz.v delete mode 100644 src/Specific/montgomery64_2e512m569/fenzDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m569/fenzDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m569/feopp.v delete mode 100644 src/Specific/montgomery64_2e512m569/feoppDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m569/feoppDisplay.v delete mode 100644 src/Specific/montgomery64_2e512m569/fesquare.c delete mode 100644 src/Specific/montgomery64_2e512m569/fesub.v delete mode 100644 src/Specific/montgomery64_2e512m569/fesubDisplay.log delete mode 100644 src/Specific/montgomery64_2e512m569/fesubDisplay.v delete mode 100755 src/Specific/montgomery64_2e512m569/py_interpreter.sh (limited to 'src/Specific/montgomery64_2e512m569') diff --git a/src/Specific/montgomery64_2e512m569/CurveParameters.v b/src/Specific/montgomery64_2e512m569/CurveParameters.v deleted file mode 100644 index 0496d086b..000000000 --- a/src/Specific/montgomery64_2e512m569/CurveParameters.v +++ /dev/null @@ -1,39 +0,0 @@ -Require Import Crypto.Specific.Framework.RawCurveParameters. -Require Import Crypto.Util.LetIn. - -(*** -Modulus : 2^512 - 569 -Base: 64 -***) - -Definition curve : CurveParameters := - {| - sz := 8%nat; - base := 64; - bitwidth := 64; - s := 2^512; - c := [(1, 569)]; - 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/montgomery64_2e512m569/Synthesis.v b/src/Specific/montgomery64_2e512m569/Synthesis.v deleted file mode 100644 index bd527400e..000000000 --- a/src/Specific/montgomery64_2e512m569/Synthesis.v +++ /dev/null @@ -1,9 +0,0 @@ -Require Import Crypto.Specific.Framework.SynthesisFramework. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/compiler.sh b/src/Specific/montgomery64_2e512m569/compiler.sh deleted file mode 100755 index cc60083aa..000000000 --- a/src/Specific/montgomery64_2e512m569/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,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='{64,64,64,64,64,64,64,64}' -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,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,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xc7}' -Dmodulus_bytes_val='64' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<512) - 569' "$@" diff --git a/src/Specific/montgomery64_2e512m569/compilerxx.sh b/src/Specific/montgomery64_2e512m569/compilerxx.sh deleted file mode 100755 index 0555455f0..000000000 --- a/src/Specific/montgomery64_2e512m569/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,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='{64,64,64,64,64,64,64,64}' -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,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,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfd,0xc7}' -Dmodulus_bytes_val='64' -Dmodulus_limbs='8' -Dq_mpz='(1_mpz<<512) - 569' "$@" diff --git a/src/Specific/montgomery64_2e512m569/feadd.c b/src/Specific/montgomery64_2e512m569/feadd.c deleted file mode 100644 index 5ef15f5f9..000000000 --- a/src/Specific/montgomery64_2e512m569/feadd.c +++ /dev/null @@ -1,52 +0,0 @@ -static void feadd(uint64_t out[8], const uint64_t in1[8], const uint64_t in2[8]) { - { const uint64_t x16 = 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 x30 = in2[7]; - { const uint64_t x31 = in2[6]; - { const uint64_t x29 = in2[5]; - { const uint64_t x27 = in2[4]; - { const uint64_t x25 = in2[3]; - { const uint64_t x23 = in2[2]; - { const uint64_t x21 = in2[1]; - { const uint64_t x19 = in2[0]; - { uint64_t x33; uint8_t x34 = _addcarryx_u64(0x0, x5, x19, &x33); - { uint64_t x36; uint8_t x37 = _addcarryx_u64(x34, x7, x21, &x36); - { uint64_t x39; uint8_t x40 = _addcarryx_u64(x37, x9, x23, &x39); - { uint64_t x42; uint8_t x43 = _addcarryx_u64(x40, x11, x25, &x42); - { uint64_t x45; uint8_t x46 = _addcarryx_u64(x43, x13, x27, &x45); - { uint64_t x48; uint8_t x49 = _addcarryx_u64(x46, x15, x29, &x48); - { uint64_t x51; uint8_t x52 = _addcarryx_u64(x49, x17, x31, &x51); - { uint64_t x54; uint8_t x55 = _addcarryx_u64(x52, x16, x30, &x54); - { uint64_t x57; uint8_t x58 = _subborrow_u64(0x0, x33, 0xfffffffffffffdc7L, &x57); - { uint64_t x60; uint8_t x61 = _subborrow_u64(x58, x36, 0xffffffffffffffffL, &x60); - { uint64_t x63; uint8_t x64 = _subborrow_u64(x61, x39, 0xffffffffffffffffL, &x63); - { uint64_t x66; uint8_t x67 = _subborrow_u64(x64, x42, 0xffffffffffffffffL, &x66); - { uint64_t x69; uint8_t x70 = _subborrow_u64(x67, x45, 0xffffffffffffffffL, &x69); - { uint64_t x72; uint8_t x73 = _subborrow_u64(x70, x48, 0xffffffffffffffffL, &x72); - { uint64_t x75; uint8_t x76 = _subborrow_u64(x73, x51, 0xffffffffffffffffL, &x75); - { uint64_t x78; uint8_t x79 = _subborrow_u64(x76, x54, 0xffffffffffffffffL, &x78); - { uint64_t _; uint8_t x82 = _subborrow_u64(x79, x55, 0x0, &_); - { uint64_t x83 = cmovznz64(x82, x78, x54); - { uint64_t x84 = cmovznz64(x82, x75, x51); - { uint64_t x85 = cmovznz64(x82, x72, x48); - { uint64_t x86 = cmovznz64(x82, x69, x45); - { uint64_t x87 = cmovznz64(x82, x66, x42); - { uint64_t x88 = cmovznz64(x82, x63, x39); - { uint64_t x89 = cmovznz64(x82, x60, x36); - { uint64_t x90 = cmovznz64(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/montgomery64_2e512m569/feadd.v b/src/Specific/montgomery64_2e512m569/feadd.v deleted file mode 100644 index 5b23fe324..000000000 --- a/src/Specific/montgomery64_2e512m569/feadd.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/feaddDisplay.log b/src/Specific/montgomery64_2e512m569/feaddDisplay.log deleted file mode 100644 index 75c6272df..000000000 --- a/src/Specific/montgomery64_2e512m569/feaddDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x x0 : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x16, x17, x15, x13, x11, x9, x7, x5, (x30, x31, x29, x27, x25, x23, x21, x19))%core, - uint64_t x33, uint8_t x34 = addcarryx_u64(0x0, x5, x19); - uint64_t x36, uint8_t x37 = addcarryx_u64(x34, x7, x21); - uint64_t x39, uint8_t x40 = addcarryx_u64(x37, x9, x23); - uint64_t x42, uint8_t x43 = addcarryx_u64(x40, x11, x25); - uint64_t x45, uint8_t x46 = addcarryx_u64(x43, x13, x27); - uint64_t x48, uint8_t x49 = addcarryx_u64(x46, x15, x29); - uint64_t x51, uint8_t x52 = addcarryx_u64(x49, x17, x31); - uint64_t x54, uint8_t x55 = addcarryx_u64(x52, x16, x30); - uint64_t x57, uint8_t x58 = subborrow_u64(0x0, x33, 0xfffffffffffffdc7L); - uint64_t x60, uint8_t x61 = subborrow_u64(x58, x36, 0xffffffffffffffffL); - uint64_t x63, uint8_t x64 = subborrow_u64(x61, x39, 0xffffffffffffffffL); - uint64_t x66, uint8_t x67 = subborrow_u64(x64, x42, 0xffffffffffffffffL); - uint64_t x69, uint8_t x70 = subborrow_u64(x67, x45, 0xffffffffffffffffL); - uint64_t x72, uint8_t x73 = subborrow_u64(x70, x48, 0xffffffffffffffffL); - uint64_t x75, uint8_t x76 = subborrow_u64(x73, x51, 0xffffffffffffffffL); - uint64_t x78, uint8_t x79 = subborrow_u64(x76, x54, 0xffffffffffffffffL); - uint64_t _, uint8_t x82 = subborrow_u64(x79, x55, 0x0); - uint64_t x83 = cmovznz64(x82, x78, x54); - uint64_t x84 = cmovznz64(x82, x75, x51); - uint64_t x85 = cmovznz64(x82, x72, x48); - uint64_t x86 = cmovznz64(x82, x69, x45); - uint64_t x87 = cmovznz64(x82, x66, x42); - uint64_t x88 = cmovznz64(x82, x63, x39); - uint64_t x89 = cmovznz64(x82, x60, x36); - uint64_t x90 = cmovznz64(x82, x57, x33); - return (x83, x84, x85, x86, x87, x88, x89, x90)) -(x, x0)%core - : 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) diff --git a/src/Specific/montgomery64_2e512m569/feaddDisplay.v b/src/Specific/montgomery64_2e512m569/feaddDisplay.v deleted file mode 100644 index 2b00ba4d3..000000000 --- a/src/Specific/montgomery64_2e512m569/feaddDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m569.feadd. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display add. diff --git a/src/Specific/montgomery64_2e512m569/femul.v b/src/Specific/montgomery64_2e512m569/femul.v deleted file mode 100644 index 02d76f2b6..000000000 --- a/src/Specific/montgomery64_2e512m569/femul.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/femulDisplay.v b/src/Specific/montgomery64_2e512m569/femulDisplay.v deleted file mode 100644 index d0cbd9503..000000000 --- a/src/Specific/montgomery64_2e512m569/femulDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m569.femul. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display mul. diff --git a/src/Specific/montgomery64_2e512m569/fenz.c b/src/Specific/montgomery64_2e512m569/fenz.c deleted file mode 100644 index a07b0df9c..000000000 --- a/src/Specific/montgomery64_2e512m569/fenz.c +++ /dev/null @@ -1,19 +0,0 @@ -static void fenz(ReturnType uint64_t out[1], const uint64_t in1[8]) { - { const uint64_t x13 = 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 x15 = (x14 | x13); - { uint64_t x16 = (x12 | x15); - { uint64_t x17 = (x10 | x16); - { uint64_t x18 = (x8 | x17); - { uint64_t x19 = (x6 | x18); - { uint64_t x20 = (x4 | x19); - { uint64_t x21 = (x2 | x20); - out[0] = x21; - }}}}}}}}}}}}}}} -} diff --git a/src/Specific/montgomery64_2e512m569/fenz.v b/src/Specific/montgomery64_2e512m569/fenz.v deleted file mode 100644 index 468b8a09c..000000000 --- a/src/Specific/montgomery64_2e512m569/fenz.v +++ /dev/null @@ -1,16 +0,0 @@ -Require Import Coq.ZArith.ZArith. -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/fenzDisplay.log b/src/Specific/montgomery64_2e512m569/fenzDisplay.log deleted file mode 100644 index a05fc22ab..000000000 --- a/src/Specific/montgomery64_2e512m569/fenzDisplay.log +++ /dev/null @@ -1,14 +0,0 @@ -λ x : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint64_t x15 = (x14 | x13); - uint64_t x16 = (x12 | x15); - uint64_t x17 = (x10 | x16); - uint64_t x18 = (x8 | x17); - uint64_t x19 = (x6 | x18); - uint64_t x20 = (x4 | x19); - uint64_t x21 = (x2 | x20); - return x21) -x - : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64 → ReturnType uint64_t diff --git a/src/Specific/montgomery64_2e512m569/fenzDisplay.v b/src/Specific/montgomery64_2e512m569/fenzDisplay.v deleted file mode 100644 index 2c0e5f649..000000000 --- a/src/Specific/montgomery64_2e512m569/fenzDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m569.fenz. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display nonzero. diff --git a/src/Specific/montgomery64_2e512m569/feopp.v b/src/Specific/montgomery64_2e512m569/feopp.v deleted file mode 100644 index d474723cc..000000000 --- a/src/Specific/montgomery64_2e512m569/feopp.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/feoppDisplay.log b/src/Specific/montgomery64_2e512m569/feoppDisplay.log deleted file mode 100644 index 2934a77a9..000000000 --- a/src/Specific/montgomery64_2e512m569/feoppDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x13, x14, x12, x10, x8, x6, x4, x2)%core, - uint64_t x16, uint8_t x17 = subborrow_u64(0x0, 0x0, x2); - uint64_t x19, uint8_t x20 = subborrow_u64(x17, 0x0, x4); - uint64_t x22, uint8_t x23 = subborrow_u64(x20, 0x0, x6); - uint64_t x25, uint8_t x26 = subborrow_u64(x23, 0x0, x8); - uint64_t x28, uint8_t x29 = subborrow_u64(x26, 0x0, x10); - uint64_t x31, uint8_t x32 = subborrow_u64(x29, 0x0, x12); - uint64_t x34, uint8_t x35 = subborrow_u64(x32, 0x0, x14); - uint64_t x37, uint8_t x38 = subborrow_u64(x35, 0x0, x13); - uint64_t x39 = (uint64_t)cmovznz(x38, 0x0, 0xffffffffffffffffL); - uint64_t x40 = (x39 & 0xfffffffffffffdc7L); - uint64_t x42, uint8_t x43 = addcarryx_u64(0x0, x16, x40); - uint64_t x44 = (x39 & 0xffffffffffffffffL); - uint64_t x46, uint8_t x47 = addcarryx_u64(x43, x19, x44); - uint64_t x48 = (x39 & 0xffffffffffffffffL); - uint64_t x50, uint8_t x51 = addcarryx_u64(x47, x22, x48); - uint64_t x52 = (x39 & 0xffffffffffffffffL); - uint64_t x54, uint8_t x55 = addcarryx_u64(x51, x25, x52); - uint64_t x56 = (x39 & 0xffffffffffffffffL); - uint64_t x58, uint8_t x59 = addcarryx_u64(x55, x28, x56); - uint64_t x60 = (x39 & 0xffffffffffffffffL); - uint64_t x62, uint8_t x63 = addcarryx_u64(x59, x31, x60); - uint64_t x64 = (x39 & 0xffffffffffffffffL); - uint64_t x66, uint8_t x67 = addcarryx_u64(x63, x34, x64); - uint64_t x68 = (x39 & 0xffffffffffffffffL); - uint64_t x70, uint8_t _ = addcarryx_u64(x67, x37, x68); - (Return x70, Return x66, Return x62, Return x58, Return x54, Return x50, Return x46, Return x42)) -x - : 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) diff --git a/src/Specific/montgomery64_2e512m569/feoppDisplay.v b/src/Specific/montgomery64_2e512m569/feoppDisplay.v deleted file mode 100644 index 3a8d8f6fd..000000000 --- a/src/Specific/montgomery64_2e512m569/feoppDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m569.feopp. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display opp. diff --git a/src/Specific/montgomery64_2e512m569/fesquare.c b/src/Specific/montgomery64_2e512m569/fesquare.c deleted file mode 100644 index 7bd8db166..000000000 --- a/src/Specific/montgomery64_2e512m569/fesquare.c +++ /dev/null @@ -1,5 +0,0 @@ -/* WARNING: This file was copied from Specific/CurveParameters/montgomery64/fesquare.c. - If you edit it here, changes will be erased the next time remake_curves.sh is run. */ -static void fesquare(uint64_t *out, const uint64_t *in) { - femul(out, in, in); -} diff --git a/src/Specific/montgomery64_2e512m569/fesub.v b/src/Specific/montgomery64_2e512m569/fesub.v deleted file mode 100644 index 509bb41b6..000000000 --- a/src/Specific/montgomery64_2e512m569/fesub.v +++ /dev/null @@ -1,14 +0,0 @@ -Require Import Crypto.Arithmetic.PrimeFieldTheorems. -Require Import Crypto.Specific.montgomery64_2e512m569.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/montgomery64_2e512m569/fesubDisplay.log b/src/Specific/montgomery64_2e512m569/fesubDisplay.log deleted file mode 100644 index 82b5805f6..000000000 --- a/src/Specific/montgomery64_2e512m569/fesubDisplay.log +++ /dev/null @@ -1,32 +0,0 @@ -λ x x0 : word64 * word64 * word64 * word64 * word64 * word64 * word64 * word64, -Interp-η -(λ var : Syntax.base_type → Type, - λ '(x16, x17, x15, x13, x11, x9, x7, x5, (x30, x31, x29, x27, x25, x23, x21, x19))%core, - uint64_t x33, uint8_t x34 = subborrow_u64(0x0, x5, x19); - uint64_t x36, uint8_t x37 = subborrow_u64(x34, x7, x21); - uint64_t x39, uint8_t x40 = subborrow_u64(x37, x9, x23); - uint64_t x42, uint8_t x43 = subborrow_u64(x40, x11, x25); - uint64_t x45, uint8_t x46 = subborrow_u64(x43, x13, x27); - uint64_t x48, uint8_t x49 = subborrow_u64(x46, x15, x29); - uint64_t x51, uint8_t x52 = subborrow_u64(x49, x17, x31); - uint64_t x54, uint8_t x55 = subborrow_u64(x52, x16, x30); - uint64_t x56 = (uint64_t)cmovznz(x55, 0x0, 0xffffffffffffffffL); - uint64_t x57 = (x56 & 0xfffffffffffffdc7L); - uint64_t x59, uint8_t x60 = addcarryx_u64(0x0, x33, x57); - uint64_t x61 = (x56 & 0xffffffffffffffffL); - uint64_t x63, uint8_t x64 = addcarryx_u64(x60, x36, x61); - uint64_t x65 = (x56 & 0xffffffffffffffffL); - uint64_t x67, uint8_t x68 = addcarryx_u64(x64, x39, x65); - uint64_t x69 = (x56 & 0xffffffffffffffffL); - uint64_t x71, uint8_t x72 = addcarryx_u64(x68, x42, x69); - uint64_t x73 = (x56 & 0xffffffffffffffffL); - uint64_t x75, uint8_t x76 = addcarryx_u64(x72, x45, x73); - uint64_t x77 = (x56 & 0xffffffffffffffffL); - uint64_t x79, uint8_t x80 = addcarryx_u64(x76, x48, x77); - uint64_t x81 = (x56 & 0xffffffffffffffffL); - uint64_t x83, uint8_t x84 = addcarryx_u64(x80, x51, x81); - uint64_t x85 = (x56 & 0xffffffffffffffffL); - uint64_t x87, uint8_t _ = addcarryx_u64(x84, x54, x85); - (Return x87, Return x83, Return x79, Return x75, Return x71, Return x67, Return x63, Return x59)) -(x, x0)%core - : 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) diff --git a/src/Specific/montgomery64_2e512m569/fesubDisplay.v b/src/Specific/montgomery64_2e512m569/fesubDisplay.v deleted file mode 100644 index bf14aeafa..000000000 --- a/src/Specific/montgomery64_2e512m569/fesubDisplay.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Crypto.Specific.montgomery64_2e512m569.fesub. -Require Import Crypto.Specific.Framework.IntegrationTestDisplayCommon. - -Check display sub. diff --git a/src/Specific/montgomery64_2e512m569/py_interpreter.sh b/src/Specific/montgomery64_2e512m569/py_interpreter.sh deleted file mode 100755 index 920fa0e84..000000000 --- a/src/Specific/montgomery64_2e512m569/py_interpreter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -set -eu - -/usr/bin/env python3 "$@" -Dq='2**512 - 569' -Dmodulus_bytes='64' -Da24='121665' -- cgit v1.2.3