Skip to content

Fixes for RecogNaturalSL2#434

Open
frankluebeck wants to merge 1 commit intogap-packages:masterfrom
frankluebeck:fl_fix_NatSL2
Open

Fixes for RecogNaturalSL2#434
frankluebeck wants to merge 1 commit intogap-packages:masterfrom
frankluebeck:fl_fix_NatSL2

Conversation

@frankluebeck
Copy link
Copy Markdown
Member

  • mention and catch that algorithm only works for q >= 5
  • simplified (and fixed?) search condition for ym
  • made search for cm less restrictive (should now also work for q=5)
  • fixed that in char two the expoment i was sometimes wrong

- mention and catch that algorithm only works for q >= 5
- simplified (and fixed?) search condition for ym
- made search for cm less restrictive (should now also work for q=5)
- fixed that in char two the expoment i was sometimes wrong
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.47%. Comparing base (0ad2380) to head (3a00fa3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #434   +/-   ##
=======================================
  Coverage   80.47%   80.47%           
=======================================
  Files          44       44           
  Lines       18384    18384           
=======================================
  Hits        14794    14794           
  Misses       3590     3590           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fingolfin
Copy link
Copy Markdown
Member

Thanks @frankluebeck !

elif q mod 2 = 0 then
i := (q-1-log)/2;
# in char two r is always a square
i := log/2 mod (q-1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So maybe just this?

Suggested change
i := log/2 mod (q-1);
i := (q-1+log)/2;

elif q mod 2 = 0 then
i := (q-1-log)/2;
# in char two r is always a square
i := log/2 mod (q-1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
i := log/2 mod (q-1);
i := (q-1+log)/2;

Till-Eisen pushed a commit to Till-Eisen/recog_SL_recog that referenced this pull request Apr 1, 2026
Till-Eisen pushed a commit to Till-Eisen/recog_SL_recog that referenced this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants