Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the tag branch information from case_info. #18996

Merged
merged 2 commits into from May 13, 2024

Conversation

ppedrot
Copy link
Member

@ppedrot ppedrot commented May 2, 2024

This cache was only used in detyping, but even there most of the time it was dead code. Since all actual uses are already assuming that the inductive type exists in the environment, we simply fetch this data from there.

Overlays:

@ppedrot ppedrot added kind: cleanup Code removal, deprecation, refactorings, etc. request: full CI Use this label when you want your next push to trigger a full CI. labels May 2, 2024
@ppedrot ppedrot added this to the 8.20+rc1 milestone May 2, 2024
@ppedrot ppedrot requested review from a team as code owners May 2, 2024 15:26
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label May 2, 2024
@ppedrot
Copy link
Member Author

ppedrot commented May 2, 2024

Just in case this has a beneficial effect on performance / memory usage, let's @coqbot bench

Copy link
Contributor

coqbot-app bot commented May 3, 2024

🏁 Bench results:

┌─────────────────────────────────────┬─────────────────────────┬───────────────────────────────────────┬───────────────────────────────────────┬─────────────────────────┐
│                                     │      user time [s]      │              CPU cycles               │           CPU instructions            │  max resident mem [KB]  │
│                                     │                         │                                       │                                       │                         │
│            package_name             │   NEW      OLD    PDIFF │      NEW             OLD        PDIFF │      NEW             OLD        PDIFF │   NEW      OLD    PDIFF │
├─────────────────────────────────────┼─────────────────────────┼───────────────────────────────────────┼───────────────────────────────────────┼─────────────────────────┤
│                          coq-stdlib │  365.48   367.64  -0.59 │  1515109880875   1522372258134  -0.48 │  1286505807815   1286778651748  -0.02 │  718340   714776   0.50 │
│                   coq-iris-examples │  466.79   469.50  -0.58 │  2111395912634   2122964242305  -0.54 │  3273854282985   3274322949830  -0.01 │ 1110876  1113204  -0.21 │
│                   coq-metacoq-pcuic │  986.70   991.32  -0.47 │  4403574268617   4421008067219  -0.39 │  6473129044104   6474251351301  -0.02 │ 2680876  2685348  -0.17 │
│               coq-engine-bench-lite │  156.19   156.72  -0.34 │   656267153328    656875637293  -0.09 │  1223675988304   1225165446677  -0.12 │ 1232488  1235100  -0.21 │
│                           coq-color │  251.62   252.32  -0.28 │  1122899328528   1123162544062  -0.02 │  1631853970980   1632044874777  -0.01 │ 1207460  1209960  -0.21 │
│                        coq-compcert │  281.91   282.51  -0.21 │  1265944721600   1267226210904  -0.10 │  1941559615573   1942490093639  -0.05 │ 1117632  1120356  -0.24 │
│                            coq-core │  131.83   132.08  -0.19 │   492780292156    493376525904  -0.12 │   531375266124    531673641322  -0.06 │  457688   457452   0.05 │
│                         coq-coqutil │   42.42    42.50  -0.19 │   186468597352    186692797429  -0.12 │   269431447509    269467111722  -0.01 │  561656   563588  -0.34 │
│          coq-performance-tests-lite │  711.96   712.88  -0.13 │  3185428646381   3188987249591  -0.11 │  5682963953568   5683458835280  -0.01 │ 2264528  2266248  -0.08 │
│                        coq-coqprime │   48.22    48.28  -0.12 │   215041691183    214992352180   0.02 │   333478285650    333540164560  -0.02 │  785004   784480   0.07 │
│                            coq-hott │  161.93   162.05  -0.07 │   717689092632    717079886631   0.08 │  1147667677926   1147673631887  -0.00 │  573436   576076  -0.46 │
│                    coq-math-classes │   85.77    85.82  -0.06 │   384327342997    383838160650   0.13 │   534908868390    534989823085  -0.02 │  503632   503724  -0.02 │
│         coq-rewriter-perf-SuperFast │  797.47   797.87  -0.05 │  3560197447946   3559479508452   0.02 │  6252816424760   6252112169482   0.01 │ 1578736  1571612   0.45 │
│                    coq-fiat-parsers │  312.90   313.04  -0.04 │  1385081618193   1383277667781   0.13 │  2465887287019   2466132496644  -0.01 │ 2396120  2402176  -0.25 │
│                coq-metacoq-template │  151.38   151.34   0.03 │   665677066807    665983701484  -0.05 │  1044504095409   1044774907422  -0.03 │ 1482480  1480624   0.13 │
│                           coq-verdi │   49.13    49.11   0.04 │   219970676387    219531521102   0.20 │   340224109024    340184934308   0.01 │  531624   532200  -0.11 │
│                 coq-category-theory │  692.30   691.91   0.06 │  3134178849555   3132301576456   0.06 │  5255093672685   5255473944690  -0.01 │  960048   955132   0.51 │
│                      coq-verdi-raft │  582.11   581.51   0.10 │  2642149984342   2637063654146   0.19 │  4157119543580   4157429872883  -0.01 │  840024   840164  -0.02 │
│                             coq-vst │  882.80   881.69   0.13 │  3990577220636   3985788842830   0.12 │  6746525394716   6742087328260   0.07 │ 2165916  2146628   0.90 │
│                            coq-corn │  713.60   712.67   0.13 │  3227527141186   3224464162093   0.09 │  5068125039566   5068908849520  -0.02 │  755808   765588  -1.28 │
│             coq-metacoq-safechecker │  424.74   424.00   0.17 │  1936191719000   1932094142483   0.21 │  3197733525439   3198026092957  -0.01 │ 2062628  2066036  -0.16 │
│                 coq-metacoq-erasure │  505.72   504.75   0.19 │  2288571340349   2284051629254   0.20 │  3585843102120   3586680078001  -0.02 │ 2154704  2156660  -0.09 │
│                         coq-unimath │ 2467.85  2463.00   0.20 │ 11185627197983  11165845751425   0.18 │ 22197982615245  22198791105142  -0.00 │ 1254448  1254728  -0.02 │
│                       coq-fiat-core │   59.68    59.56   0.20 │   246556403678    246997271847  -0.18 │   366084216183    366119988396  -0.01 │  476340   476700  -0.08 │
│        coq-fiat-crypto-with-bedrock │ 6248.70  6230.76   0.29 │ 28292508441029  28208328863337   0.30 │ 51193811326636  51200625991741  -0.01 │ 3245864  3245912  -0.00 │
│                        coq-rewriter │  392.95   391.56   0.35 │  1770814968071   1764286156466   0.37 │  2988714280063   2989065563466  -0.01 │ 1480012  1475388   0.31 │
│            coq-metacoq-translations │   17.15    17.07   0.47 │    75374917540     75300760612   0.10 │   124693870539    124636356601   0.05 │  844484   847540  -0.36 │
│                      coq-test-suite │  706.87   703.37   0.50 │  3002616284508   2987536204768   0.50 │  5381418099728   5387472553446  -0.11 │ 2697652  2457868   9.76 │
│                         coq-bignums │   29.55    29.40   0.51 │   132820408674    132737510123   0.06 │   191990818029    192034482080  -0.02 │  472676   474776  -0.44 │
│                       coq-equations │    7.59     7.54   0.66 │    30996012855     30903232938   0.30 │    50430536976     50436391364  -0.01 │  388044   387132   0.24 │
│                        coq-bedrock2 │  362.35   358.51   1.07 │  1635978192286   1621518960655   0.89 │  3100556216126   3101178062660  -0.02 │  858268   859468  -0.14 │
│ coq-neural-net-interp-computed-lite │  309.21   302.48   2.22 │  1410371627758   1379620328002   2.23 │  3615372081265   3615448427677  -0.00 │ 1127868  1126504   0.12 │
└─────────────────────────────────────┴─────────────────────────┴───────────────────────────────────────┴───────────────────────────────────────┴─────────────────────────┘

INFO: failed to install
coq-mathcomp-ssreflect (dependency install failed in NEW)

coq-mathcomp-fingroup (dependency coq-mathcomp-ssreflect failed)
coq-mathcomp-algebra (dependency coq-mathcomp-ssreflect failed)
coq-mathcomp-solvable (dependency coq-mathcomp-ssreflect failed)
coq-mathcomp-field (dependency coq-mathcomp-ssreflect failed)
coq-mathcomp-character (dependency coq-mathcomp-ssreflect failed)
coq-mathcomp-odd-order (dependency coq-mathcomp-ssreflect failed)
coq-coquelicot (dependency coq-mathcomp-ssreflect failed)
coq-fourcolor (dependency coq-mathcomp-ssreflect failed)

🐢 Top 25 slow downs
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                 TOP 25 SLOW DOWNS                                                                 │
│                                                                                                                                                   │
│   OLD       NEW      DIFF   %DIFF    Ln                      FILE                                                                                 │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 260.9510  267.2530  6.3020   2.42%     8  coq-neural-net-interp-computed-lite/theories/MaxOfTwoNumbersSimpler/Computed/AllLogits.v.html           │
│ 181.2400  183.2030  1.9630   1.08%   233  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/DecodeByExtension.v.html │
│   9.2000   10.6230  1.4230  15.47%   192  coq-vst/veric/binop_lemmas5.v.html                                                                      │
│  94.4340   95.8060  1.3720   1.45%   999  coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html                         │
│  47.2400   48.5500  1.3100   2.77%   558  coq-bedrock2/bedrock2/src/bedrock2Examples/insertionsort.v.html                                         │
│  94.3800   95.6730  1.2930   1.37%   968  coq-performance-tests-lite/src/fiat_crypto_via_setoid_rewrite_standalone.v.html                         │
│  62.2010   63.4480  1.2470   2.00%   609  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/lightbulb.v.html           │
│  47.8350   48.6550  0.8200   1.71%   558  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/insertionsort.v.html       │
│  19.8460   20.6610  0.8150   4.11%   819  coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html                                 │
│  45.9450   46.7450  0.8000   1.74%   110  coq-bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html                                              │
│  44.2960   45.0540  0.7580   1.71%   827  coq-vst/veric/binop_lemmas4.v.html                                                                      │
│ 132.4590  133.1690  0.7100   0.54%    22  coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/ArithWithCasts.v.html                                  │
│  45.8700   46.5520  0.6820   1.49%   110  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/bedrock2/src/bedrock2Examples/full_mul.v.html            │
│  62.5250   63.1390  0.6140   0.98%   609  coq-bedrock2/bedrock2/src/bedrock2Examples/lightbulb.v.html                                             │
│   3.3340    3.8650  0.5310  15.93%   490  coq-stdlib/Reals/Cauchy/ConstructiveCauchyRealsMult.v.html                                              │
│  14.8090   15.2890  0.4800   3.24%   490  coq-unimath/UniMath/HomologicalAlgebra/KA.v.html                                                        │
│  39.4600   39.8610  0.4010   1.02%   835  coq-fiat-crypto-with-bedrock/src/Fancy/Compiler.v.html                                                  │
│  22.7040   23.0980  0.3940   1.74%   296  coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/X25519/EdwardsXYZT.v.html                              │
│  27.7540   28.1310  0.3770   1.36%  1933  coq-fiat-crypto-with-bedrock/src/Bedrock/End2End/RupicolaCrypto/ChaCha20.v.html                         │
│ 101.3000  101.6580  0.3580   0.35%    20  coq-fiat-crypto-with-bedrock/src/Rewriter/Passes/NBE.v.html                                             │
│  20.8070   21.1340  0.3270   1.57%   213  coq-fiat-crypto-with-bedrock/src/Curves/EdwardsMontgomery.v.html                                        │
│   1.5030    1.8290  0.3260  21.69%   557  coq-vst/veric/expr_lemmas3.v.html                                                                       │
│   2.8300    3.1520  0.3220  11.38%   487  coq-stdlib/Numbers/HexadecimalFacts.v.html                                                              │
│  21.4020   21.7050  0.3030   1.42%    40  coq-fiat-crypto-with-bedrock/src/PushButtonSynthesis/SolinasReductionReificationCache.v.html            │
│   4.5560    4.8500  0.2940   6.45%     5  coq-fiat-crypto-with-bedrock/src/Assembly/Parse/Examples/fiat_p256_square_optimised_seed103.v.html      │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
🐇 Top 25 speed ups
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                TOP 25 SPEED UPS                                                                 │
│                                                                                                                                                 │
│   OLD       NEW      DIFF     %DIFF     Ln                     FILE                                                                             │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ 258.1690  255.3520  -2.8170    -1.09%  1629  coq-metacoq-pcuic/pcuic/theories/PCUICSR.v.html                                                    │
│ 219.5540  217.1000  -2.4540    -1.12%   103  coq-fiat-crypto-with-bedrock/src/Arithmetic/BarrettReduction.v.html                                │
│  19.7510   18.3840  -1.3670    -6.92%   820  coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html                            │
│  33.9250   33.1330  -0.7920    -2.33%    97  coq-vst/veric/binop_lemmas5.v.html                                                                 │
│ 155.7060  154.9810  -0.7250    -0.47%  1190  coq-unimath/UniMath/CategoryTheory/GrothendieckConstruction/IsPullback.v.html                      │
│  41.9780   41.5660  -0.4120    -0.98%   139  coq-fiat-parsers/src/Parsers/Refinement/SharpenedJSON.v.html                                       │
│  12.6460   12.2880  -0.3580    -2.83%   409  coq-category-theory/Theory/Metacategory/ArrowsOnly.v.html                                          │
│   7.9790    7.6370  -0.3420    -4.29%   881  coq-vst/veric/binop_lemmas4.v.html                                                                 │
│   1.0950    0.7960  -0.2990   -27.31%   467  coq-stdlib/Numbers/DecimalFacts.v.html                                                             │
│   0.8500    0.5740  -0.2760   -32.47%   170  coq-stdlib/Numbers/HexadecimalNat.v.html                                                           │
│  27.5510   27.3040  -0.2470    -0.90%    68  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/deps/riscv-coq/src/riscv/Proofs/VerifyDecode.v.html │
│   0.5390    0.2950  -0.2440   -45.27%  1364  coq-stdlib/FSets/FMapAVL.v.html                                                                    │
│   9.9050    9.6640  -0.2410    -2.43%   820  coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html                            │
│  10.0060    9.7680  -0.2380    -2.38%   418  coq-category-theory/Theory/Metacategory/ArrowsOnly.v.html                                          │
│  16.0830   15.8500  -0.2330    -1.45%   828  coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Jacobian/CoZ.v.html                            │
│  73.0380   72.8070  -0.2310    -0.32%   905  coq-unimath/UniMath/ModelCategories/Generated/LNWFSCocomplete.v.html                               │
│  50.6380   50.4220  -0.2160    -0.43%    50  coq-fiat-crypto-with-bedrock/src/Bedrock/Field/Synthesis/Examples/p224_64_new.v.html               │
│   0.2100    0.0000  -0.2100  -100.00%   241  coq-metacoq-erasure/erasure/theories/ErasureProperties.v.html                                      │
│   0.2070    0.0010  -0.2060   -99.52%   189  coq-metacoq-pcuic/pcuic/theories/PCUICPrincipality.v.html                                          │
│  37.1410   36.9390  -0.2020    -0.54%   548  coq-fiat-crypto-with-bedrock/rupicola/bedrock2/compiler/src/compiler/MMIO.v.html                   │
│   5.7210    5.5220  -0.1990    -3.48%    19  coq-fiat-crypto-with-bedrock/src/Language/IdentifiersBasicGENERATED.v.html                         │
│  34.1540   33.9580  -0.1960    -0.57%   839  coq-unimath/UniMath/CategoryTheory/GrothendieckConstruction/IsPullback.v.html                      │
│  26.2080   26.0210  -0.1870    -0.71%   129  coq-fiat-crypto-with-bedrock/src/Curves/Weierstrass/Projective.v.html                              │
│   0.5030    0.3210  -0.1820   -36.18%   163  coq-stdlib/Numbers/HexadecimalPos.v.html                                                           │
│  96.1350   95.9630  -0.1720    -0.18%   376  coq-unimath/UniMath/ModelCategories/Generated/LNWFSMonoidalStructure.v.html                        │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

ppedrot added a commit to ppedrot/paramcoq that referenced this pull request May 3, 2024
ppedrot added a commit to ppedrot/coq-elpi that referenced this pull request May 3, 2024
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label May 3, 2024
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label May 3, 2024
Copy link
Contributor

coqbot-app bot commented May 3, 2024

🔴 CI failures at commit 049b0e0 without any failure in the test-suite

✔️ Corresponding jobs for the base commit d9c5107 succeeded

❔ Ask me to try to extract minimal test cases that can be added to the test-suite

🏃 @coqbot ci minimize will minimize the following targets: ci-elpi_test, ci-mathcomp
  • You can also pass me a specific list of targets to minimize as arguments.

ppedrot added a commit to ppedrot/coq-elpi that referenced this pull request May 4, 2024
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label May 4, 2024
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label May 4, 2024
Copy link
Contributor

@SkySkimmer SkySkimmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks debug printing

{ ind_tags : bool list; (** tell whether letin or lambda in the arity of the inductive type *)
cstr_tags : bool list array; (** tell whether letin or lambda in the signature of each constructor *)
style : case_style }
{ style : case_style }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it useful to keep this record? ie do we expect to add some fields to it someday?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't cost much if we want to add other flags. I'd rather keep it.

pretyping/detyping.ml Outdated Show resolved Hide resolved
@SkySkimmer SkySkimmer self-assigned this May 7, 2024
@SkySkimmer SkySkimmer added the needs: fixing The proposed code change is broken. label May 7, 2024
This cache was only used in detyping, but even there most of the time it
was dead code. Since all actual uses are already assuming that the inductive
type exists in the environement, we simply fetch this data from there.
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label May 7, 2024
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label May 7, 2024
@ppedrot ppedrot removed the needs: fixing The proposed code change is broken. label May 7, 2024
@ppedrot
Copy link
Member Author

ppedrot commented May 7, 2024

@SkySkimmer fixed

@SkySkimmer
Copy link
Contributor

@coqbot merge now

@coqbot-app coqbot-app bot merged commit 5686beb into coq:master May 13, 2024
6 checks passed
Copy link
Contributor

coqbot-app bot commented May 13, 2024

@SkySkimmer: Please take care of the following overlays:

  • 18996-ppedrot-case-info-rm-tags.sh

SkySkimmer added a commit to LPCIC/coq-elpi that referenced this pull request May 13, 2024
SkySkimmer added a commit to coq-community/paramcoq that referenced this pull request May 13, 2024
@ppedrot ppedrot deleted the case-info-rm-tags branch May 13, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: cleanup Code removal, deprecation, refactorings, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants