| Commit message (Collapse) | Author | Age |
|
|
|
| |
preparation for reifying barrett; tweaked definition of cc_l
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is in preparation for writing a ~compiler for the arithmetic things
to expression trees.
I'm not sure what's up with femul in the table below; I ran it again and
got:
After:
src/Specific/NISTP256/AMD64/femul (real: 115.70, user: 115.25, sys: 0.44, mem: 3571448 ko)
Before:
src/Specific/NISTP256/AMD64/femul (real: 118.49, user: 117.99, sys: 0.43, mem: 3581612 ko)
After | File Name | Before || Change
---------------------------------------------------------------------------------------------
17m02.82s | Total | 16m36.20s || +0m26.61s
---------------------------------------------------------------------------------------------
2m27.04s | Specific/NISTP256/AMD64/femul | 2m04.60s || +0m22.43s
1m38.55s | Specific/X2448/Karatsuba/C64/femul | 1m41.44s || -0m02.89s
0m12.46s | Arithmetic/Saturated/AddSub | 0m09.77s || +0m02.69s
3m22.38s | Specific/X25519/C64/ladderstep | 3m23.49s || -0m01.11s
0m54.40s | Specific/X25519/C32/fesquare | 0m52.68s || +0m01.71s
0m28.70s | Arithmetic/Karatsuba | 0m27.59s || +0m01.10s
0m10.00s | Arithmetic/Saturated/MontgomeryAPI | 0m08.95s || +0m01.05s
0m08.15s | Specific/X2448/Karatsuba/C64/Synthesis | 0m09.47s || -0m01.32s
0m05.62s | Arithmetic/Saturated/MulSplit | 0m04.28s || +0m01.33s
1m29.44s | Specific/X25519/C32/femul | 1m28.55s || +0m00.89s
0m39.38s | Specific/X25519/C32/freeze | 0m38.62s || +0m00.76s
0m31.54s | Specific/NISTP256/AMD128/femul | 0m31.60s || -0m00.06s
0m24.80s | Specific/X25519/C64/femul | 0m24.10s || +0m00.69s
0m23.82s | Specific/NISTP256/AMD64/fesub | 0m23.52s || +0m00.30s
0m21.81s | Specific/NISTP256/AMD64/feadd | 0m21.90s || -0m00.08s
0m20.30s | Specific/X25519/C64/freeze | 0m20.26s || +0m00.03s
0m20.12s | Specific/X25519/C32/Synthesis | 0m20.77s || -0m00.64s
0m19.12s | Specific/X25519/C64/fesquare | 0m19.02s || +0m00.10s
0m17.28s | Specific/NISTP256/AMD64/feopp | 0m17.68s || -0m00.39s
0m15.99s | Specific/NISTP256/AMD128/fesub | 0m16.03s || -0m00.04s
0m15.88s | Specific/NISTP256/AMD128/feadd | 0m16.56s || -0m00.67s
0m15.03s | Specific/NISTP256/AMD64/fenz | 0m15.00s || +0m00.02s
0m14.18s | Specific/NISTP256/AMD128/fenz | 0m14.12s || +0m00.06s
0m13.46s | Specific/NISTP256/AMD128/feopp | 0m12.88s || +0m00.58s
0m12.15s | Arithmetic/Core | 0m12.03s || +0m00.12s
0m07.82s | Arithmetic/Saturated/Core | 0m07.05s || +0m00.77s
0m07.13s | Specific/NISTP256/AMD64/Synthesis | 0m08.05s || -0m00.92s
0m05.48s | Specific/X25519/C64/Synthesis | 0m05.68s || -0m00.19s
0m04.02s | Specific/Framework/ArithmeticSynthesis/Montgomery | 0m03.89s || +0m00.12s
0m03.52s | Arithmetic/MontgomeryReduction/WordByWord/Proofs | 0m03.34s || +0m00.18s
0m03.32s | Specific/NISTP256/AMD128/Synthesis | 0m03.46s || -0m00.14s
0m02.30s | Specific/Framework/ArithmeticSynthesis/Defaults | 0m02.31s || -0m00.01s
0m02.08s | Arithmetic/Saturated/Freeze | 0m01.94s || +0m00.14s
0m01.66s | Specific/Framework/OutputType | 0m01.66s || +0m00.00s
0m01.54s | Arithmetic/CoreUnfolder | 0m01.43s || +0m00.11s
0m01.35s | Specific/Framework/ArithmeticSynthesis/Karatsuba | 0m01.28s || +0m00.07s
0m01.13s | Arithmetic/Saturated/CoreUnfolder | 0m01.16s || -0m00.03s
0m01.06s | Arithmetic/Saturated/WrappersUnfolder | 0m01.04s || +0m00.02s
0m01.04s | Arithmetic/Saturated/UniformWeight | 0m00.95s || +0m00.09s
0m01.03s | Specific/Framework/ArithmeticSynthesis/Base | 0m01.14s || -0m00.10s
0m01.02s | Specific/Framework/SynthesisFramework | 0m01.04s || -0m00.02s
0m00.97s | Specific/Framework/ArithmeticSynthesis/HelperTactics | 0m01.01s || -0m00.04s
0m00.92s | Specific/Framework/ReificationTypes | 0m00.90s || +0m00.02s
0m00.92s | Specific/Framework/ArithmeticSynthesis/Freeze | 0m00.93s || -0m00.01s
0m00.90s | Arithmetic/Saturated/MulSplitUnfolder | 0m00.83s || +0m00.07s
0m00.83s | Specific/Framework/ReificationTypesPackage | 0m00.79s || +0m00.03s
0m00.83s | Arithmetic/Saturated/FreezeUnfolder | 0m00.86s || -0m00.03s
0m00.82s | Specific/Framework/ArithmeticSynthesis/BasePackage | 0m00.77s || +0m00.04s
0m00.81s | Specific/Framework/ArithmeticSynthesis/SquareFromMul | 0m00.72s || +0m00.09s
0m00.81s | Specific/Framework/ArithmeticSynthesis/LadderstepPackage | 0m00.82s || -0m00.00s
0m00.80s | Specific/Framework/MontgomeryReificationTypesPackage | 0m00.82s || -0m00.01s
0m00.78s | Specific/Framework/ArithmeticSynthesis/MontgomeryPackage | 0m00.79s || -0m00.01s
0m00.78s | Arithmetic/Saturated/Wrappers | 0m00.78s || +0m00.00s
0m00.76s | Specific/Framework/ArithmeticSynthesis/FreezePackage | 0m00.80s || -0m00.04s
0m00.76s | Specific/Framework/ArithmeticSynthesis/DefaultsPackage | 0m00.75s || +0m00.01s
0m00.75s | Specific/Framework/MontgomeryReificationTypes | 0m00.78s || -0m00.03s
0m00.73s | Specific/Framework/ArithmeticSynthesis/Ladderstep | 0m00.77s || -0m00.04s
0m00.73s | Arithmetic/MontgomeryReduction/WordByWord/Definition | 0m00.80s || -0m00.07s
0m00.72s | Arithmetic/Saturated/UniformWeightInstances | 0m00.78s || -0m00.06s
0m00.68s | Specific/Framework/ArithmeticSynthesis/KaratsubaPackage | 0m00.76s || -0m00.07s
0m00.43s | Util/ZUtil/CPS | 0m00.42s || +0m00.01s
|
|
|
|
|
|
| |
It unfolds to Z.mul_split_at_bitwidth rather than
Z.mul_split_at_bitwidth_cps. This is useful when reification still
needs to recognize Z.mul_split_at_bitwidth.
|
|
|
|
| |
This will hopefully allow the compiler to reflective-land an easier job.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
not known that they split on a power of 2
|
| |
|
|
|
|
| |
This closes #209.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also reimplement it with a shift and a mask
|
| |
|
|
|
|
|
| |
This will make it easier on the reflective machinery, because it won't
have to carry around such large constants.
|
|
|
|
| |
This version provides hypotheses about the non{negativity,positivity} of the Z.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This fixes all of the private-names warnings emitted by
compiling fiat-crypto with https://github.com/coq/coq/pull/268 (minus
the ones in coqprime, which I didn't touch).
|
|
|
|
|
|
|
| |
With
```bash
bash ./etc/coq-scripts/formatting/strip-trailing-whitespace.sh
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After | File Name | Before || Change
---------------------------------------------------------------------------------------
6m14.04s | Total | 6m23.68s || -0m09.63s
---------------------------------------------------------------------------------------
0m26.28s | Compilers/Z/ArithmeticSimplifierWf | 0m48.67s || -0m22.39s
0m25.64s | Compilers/Z/ArithmeticSimplifierInterp | 0m14.14s || +0m11.50s
2m17.60s | Specific/IntegrationTestLadderstep | 2m17.90s || -0m00.30s
0m56.48s | Compilers/Z/Named/RewriteAddToAdcInterp | 0m55.76s || +0m00.71s
0m54.26s | Specific/IntegrationTestLadderstep130 | 0m54.53s || -0m00.27s
0m15.89s | Specific/IntegrationTestFreeze | 0m15.07s || +0m00.82s
0m11.69s | Specific/IntegrationTestMul | 0m11.78s || -0m00.08s
0m10.62s | Specific/ArithmeticSynthesisTest | 0m10.59s || +0m00.02s
0m10.54s | Specific/IntegrationTestSub | 0m10.55s || -0m00.01s
0m08.98s | Specific/IntegrationTestSquare | 0m09.04s || -0m00.05s
0m06.05s | Arithmetic/Saturated | 0m06.02s || +0m00.03s
0m03.04s | Compilers/Z/RewriteAddToAdcInterp | 0m03.00s || +0m00.04s
0m02.60s | Compilers/Z/Bounds/Pipeline/Definition | 0m02.25s || +0m00.35s
0m01.52s | Util/ZUtil/AddGetCarry | 0m01.50s || +0m00.02s
0m00.74s | Arithmetic/MontgomeryReduction/WordByWord/Definition | 0m00.71s || +0m00.03s
0m00.62s | Compilers/Z/Bounds/Pipeline/ReflectiveTactics | 0m00.78s || -0m00.16s
0m00.59s | Compilers/Z/ArithmeticSimplifier | 0m00.42s || +0m00.17s
0m00.57s | Compilers/Z/Bounds/Pipeline | 0m00.60s || -0m00.03s
0m00.34s | Compilers/Z/ArithmeticSimplifierUtil | 0m00.37s || -0m00.02s
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After | File Name | Before || Change
-------------------------------------------------------------------------------------------------
12m37.09s | Total | 12m23.52s || +0m13.56s
-------------------------------------------------------------------------------------------------
0m12.09s | Compilers/Z/Syntax/Equality | 0m06.70s || +0m05.38s
0m56.82s | Compilers/Z/Named/RewriteAddToAdcInterp | 0m54.12s || +0m02.70s
2m20.25s | Specific/IntegrationTestLadderstep | 2m18.79s || +0m01.46s
0m13.83s | Compilers/Z/ArithmeticSimplifierInterp | 0m12.56s || +0m01.26s
1m38.90s | Spec/Test/X25519 | 1m38.46s || +0m00.43s
0m53.83s | Specific/IntegrationTestLadderstep130 | 0m53.93s || -0m00.10s
0m48.70s | Compilers/Z/ArithmeticSimplifierWf | 0m49.10s || -0m00.39s
0m39.72s | Spec/Ed25519 | 0m39.65s || +0m00.07s
0m22.19s | Primitives/EdDSARepChange | 0m22.08s || +0m00.11s
0m19.69s | Compilers/Named/MapCastWf | 0m19.63s || +0m00.06s
0m15.09s | Specific/IntegrationTestFreeze | 0m15.28s || -0m00.18s
0m11.78s | Specific/IntegrationTestMul | 0m11.61s || +0m00.16s
0m10.54s | Specific/IntegrationTestSub | 0m10.48s || +0m00.05s
0m10.46s | Specific/ArithmeticSynthesisTest | 0m10.47s || -0m00.00s
0m09.30s | Util/ZUtil | 0m09.21s || +0m00.08s
0m09.15s | Compilers/Named/MapCastInterp | 0m09.19s || -0m00.03s
0m09.14s | Specific/IntegrationTestSquare | 0m09.28s || -0m00.13s
0m08.82s | Arithmetic/MontgomeryReduction/Proofs | 0m08.78s || +0m00.04s
0m08.46s | LegacyArithmetic/ArchitectureToZLikeProofs | 0m08.38s || +0m00.08s
0m08.23s | LegacyArithmetic/Double/Proofs/Multiply | 0m08.16s || +0m00.07s
0m07.80s | Arithmetic/Core | 0m07.71s || +0m00.08s
0m07.70s | LegacyArithmetic/Double/Proofs/ShiftRightDoubleWordImmediate | 0m07.78s || -0m00.08s
0m06.72s | LegacyArithmetic/Double/Proofs/SpreadLeftImmediate | 0m06.79s || -0m00.07s
0m06.37s | Util/FixedWordSizesEquality | 0m06.33s || +0m00.04s
0m06.06s | Arithmetic/Saturated | 0m05.84s || +0m00.21s
0m05.43s | LegacyArithmetic/Double/Proofs/RippleCarryAddSub | 0m05.38s || +0m00.04s
0m05.41s | LegacyArithmetic/Pow2BaseProofs | 0m05.31s || +0m00.10s
0m05.05s | Specific/ArithmeticSynthesisTest130 | 0m05.09s || -0m00.04s
0m04.98s | Compilers/Z/Bounds/InterpretationLemmas/PullCast | 0m04.80s || +0m00.18s
0m03.94s | Arithmetic/BarrettReduction/HAC | 0m03.84s || +0m00.10s
0m03.79s | Util/ForLoop/Unrolling | 0m03.80s || -0m00.00s
0m03.45s | LegacyArithmetic/InterfaceProofs | 0m03.40s || +0m00.05s
0m03.23s | Arithmetic/BarrettReduction/Generalized | 0m03.07s || +0m00.16s
0m03.02s | Specific/FancyMachine256/Montgomery | 0m03.20s || -0m00.18s
0m03.00s | Compilers/Z/RewriteAddToAdcInterp | 0m02.94s || +0m00.06s
0m02.98s | Arithmetic/ModularArithmeticTheorems | 0m03.02s || -0m00.04s
0m02.94s | LegacyArithmetic/ZBoundedZ | 0m02.88s || +0m00.06s
0m02.82s | Specific/FancyMachine256/Barrett | 0m02.82s || +0m00.00s
0m02.64s | LegacyArithmetic/Double/Proofs/ShiftLeft | 0m02.54s || +0m00.10s
0m02.63s | LegacyArithmetic/Double/Proofs/Decode | 0m02.53s || +0m00.10s
0m02.62s | LegacyArithmetic/Double/Proofs/ShiftRight | 0m02.72s || -0m00.10s
0m02.56s | Compilers/Z/Bounds/InterpretationLemmas/IsBoundedBy | 0m02.25s || +0m00.31s
0m02.34s | Compilers/Z/Bounds/Relax | 0m02.40s || -0m00.06s
0m02.26s | LegacyArithmetic/BarretReduction | 0m02.25s || +0m00.00s
0m02.21s | Compilers/Z/Bounds/Pipeline/Definition | 0m02.13s || +0m00.08s
0m02.10s | Util/WordUtil | 0m02.07s || +0m00.03s
0m02.00s | Util/ForLoop/InvariantFramework | 0m01.98s || +0m00.02s
0m01.86s | Specific/FancyMachine256/Core | 0m01.82s || +0m00.04s
0m01.82s | Util/ZUtil/AddGetCarry | 0m01.61s || +0m00.20s
0m01.60s | Arithmetic/PrimeFieldTheorems | 0m01.45s || +0m00.15s
0m01.56s | Arithmetic/BarrettReduction/Wikipedia | 0m01.50s || +0m00.06s
0m01.55s | LegacyArithmetic/MontgomeryReduction | 0m01.53s || +0m00.02s
0m01.25s | Util/NumTheoryUtil | 0m00.96s || +0m00.29s
0m01.03s | Compilers/Z/RewriteAddToAdcWf | 0m01.02s || +0m00.01s
0m00.99s | Arithmetic/Karatsuba | 0m00.81s || +0m00.17s
0m00.98s | LegacyArithmetic/Double/Proofs/BitwiseOr | 0m00.99s || -0m00.01s
0m00.98s | Util/ZUtil/Pow2Mod | 0m00.97s || +0m00.01s
0m00.90s | LegacyArithmetic/Double/Proofs/LoadImmediate | 0m00.95s || -0m00.04s
0m00.80s | LegacyArithmetic/BaseSystemProofs | 0m00.88s || -0m00.07s
0m00.80s | Util/ZUtil/Testbit | 0m00.74s || +0m00.06s
0m00.79s | Compilers/Z/Bounds/Pipeline/ReflectiveTactics | 0m00.65s || +0m00.14s
0m00.76s | Compilers/Z/CNotations | 0m00.78s || -0m00.02s
0m00.76s | Util/ZUtil/Stabilization | 0m00.64s || +0m00.12s
0m00.68s | Util/IterAssocOp | 0m00.69s || -0m00.00s
0m00.66s | Compilers/Z/Syntax/Util | 0m00.66s || +0m00.00s
0m00.66s | Compilers/MapCastByDeBruijnInterp | 0m00.78s || -0m00.12s
0m00.64s | Compilers/Z/CommonSubexpressionElimination | 0m00.58s || +0m00.06s
0m00.63s | LegacyArithmetic/Interface | 0m00.56s || +0m00.06s
0m00.62s | Compilers/Z/Bounds/Pipeline | 0m00.53s || +0m00.08s
0m00.62s | Arithmetic/MontgomeryReduction/WordByWord/Definition | 0m00.67s || -0m00.05s
0m00.62s | LegacyArithmetic/Double/Proofs/SelectConditional | 0m00.58s || +0m00.04s
0m00.55s | Compilers/MapCastByDeBruijnWf | 0m00.62s || -0m00.06s
0m00.52s | Compilers/Z/Reify | 0m00.56s || -0m00.04s
0m00.52s | Compilers/Z/JavaNotations | 0m00.50s || +0m00.02s
0m00.52s | LegacyArithmetic/ZBounded | 0m00.54s || -0m00.02s
0m00.51s | Compilers/Z/Bounds/RoundUpLemmas | 0m00.44s || +0m00.07s
0m00.51s | Compilers/Z/Bounds/Pipeline/Glue | 0m00.47s || +0m00.04s
0m00.50s | Compilers/Z/Syntax | 0m00.44s || +0m00.06s
0m00.50s | Compilers/Z/ArithmeticSimplifier | 0m00.47s || +0m00.03s
0m00.50s | LegacyArithmetic/Double/Core | 0m00.53s || -0m00.03s
0m00.49s | Compilers/Z/Bounds/MapCastByDeBruijnInterp | 0m00.48s || +0m00.01s
0m00.48s | Arithmetic/ModularArithmeticPre | 0m00.47s || +0m00.01s
0m00.47s | Util/NUtil | 0m00.51s || -0m00.04s
0m00.47s | Compilers/Z/Bounds/MapCastByDeBruijnWf | 0m00.40s || +0m00.06s
0m00.47s | Spec/EdDSA | 0m00.51s || -0m00.04s
0m00.46s | Compilers/Z/Bounds/InterpretationLemmas/Tactics | 0m00.48s || -0m00.01s
0m00.46s | Compilers/Z/Named/RewriteAddToAdc | 0m00.49s || -0m00.02s
0m00.45s | Spec/ModularArithmetic | 0m00.45s || +0m00.00s
0m00.45s | LegacyArithmetic/Double/Proofs/ShiftLeftRightTactic | 0m00.54s || -0m00.09s
0m00.44s | Arithmetic/MontgomeryReduction/Definition | 0m00.45s || -0m00.01s
0m00.44s | Util/ForLoop/Tests | 0m00.43s || +0m00.01s
0m00.44s | Compilers/Z/MapCastByDeBruijn | 0m00.49s || -0m00.04s
0m00.44s | LegacyArithmetic/ArchitectureToZLike | 0m00.44s || +0m00.00s
0m00.43s | LegacyArithmetic/BaseSystem | 0m00.41s || +0m00.02s
0m00.43s | Compilers/Z/InlineInterp | 0m00.36s || +0m00.07s
0m00.43s | Compilers/Z/MapCastByDeBruijnWf | 0m00.40s || +0m00.02s
0m00.42s | LegacyArithmetic/Pow2Base | 0m00.48s || -0m00.06s
0m00.42s | Compilers/Z/CommonSubexpressionEliminationWf | 0m00.40s || +0m00.01s
0m00.42s | Compilers/Z/Bounds/Interpretation | 0m00.46s || -0m00.04s
0m00.42s | Specific/IntegrationTestDisplayCommon | 0m00.36s || +0m00.06s
0m00.42s | Compilers/Z/RewriteAddToAdc | 0m00.41s || +0m00.01s
0m00.42s | Util/ZUtil/Morphisms | 0m00.38s || +0m00.03s
0m00.42s | Compilers/Z/InlineWf | 0m00.44s || -0m00.02s
0m00.41s | Compilers/Z/CommonSubexpressionEliminationInterp | 0m00.39s || +0m00.01s
0m00.41s | Compilers/Z/HexNotationConstants | 0m00.38s || +0m00.02s
0m00.40s | Compilers/Z/Bounds/MapCastByDeBruijn | 0m00.36s || +0m00.04s
0m00.39s | Compilers/Z/Named/DeadCodeElimination | 0m00.36s || +0m00.03s
0m00.38s | Compilers/Z/Named/DeadCodeEliminationInterp | 0m00.40s || -0m00.02s
0m00.37s | Compilers/Z/MapCastByDeBruijnInterp | 0m00.40s || -0m00.03s
0m00.36s | Compilers/Z/OpInversion | 0m00.36s || +0m00.00s
0m00.36s | Compilers/Z/FoldTypes | 0m00.36s || +0m00.00s
0m00.35s | Compilers/Z/Bounds/Pipeline/OutputType | 0m00.33s || +0m00.01s
0m00.34s | Compilers/Z/BinaryNotationConstants | 0m00.36s || -0m00.01s
0m00.34s | Compilers/Z/Inline | 0m00.41s || -0m00.06s
0m00.34s | Compilers/Z/ArithmeticSimplifierUtil | 0m00.35s || -0m00.00s
0m00.31s | Util/ZUtil/Tactics/Ztestbit | 0m00.30s || +0m00.01s
0m00.31s | Util/ZUtil/Tactics | 0m00.30s || +0m00.01s
0m00.30s | Util/ZUtil/Definitions | 0m00.27s || +0m00.02s
0m00.30s | Util/ZUtil/Zselect | 0m00.30s || +0m00.00s
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
The new definition is judgmentally equal to the old one, but is slightly
easier to reify.
|
|
|
|
| |
In ZUtil/Definitions.v
|
| |
|