Skip to content

Added remaining F2008 intrinsics#518

Open
LonelyCat124 wants to merge 2 commits into
masterfrom
more_2008_intrinsics
Open

Added remaining F2008 intrinsics#518
LonelyCat124 wants to merge 2 commits into
masterfrom
more_2008_intrinsics

Conversation

@LonelyCat124

Copy link
Copy Markdown

This adds all the new F2008 intrinsics. There are some potential extensions to previously existing intrinsics I didn't include, but I wasn't certain enough of those to add them in this PR.

All intrinsics taken from https://wg5-fortran.org/N1851-N1900/N1891.pdf and checked with gcc docs if I was unsure about arguments.

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (743d453) to head (75b3709).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #518   +/-   ##
=======================================
  Coverage   92.25%   92.25%           
=======================================
  Files          89       89           
  Lines       13886    13900   +14     
=======================================
+ Hits        12810    12824   +14     
  Misses       1076     1076           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LonelyCat124

Copy link
Copy Markdown
Author

@sergisiso @arporter Ready for a look.

@arporter arporter left a comment

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.

Good job Aidan, thanks for tackling this. I attempted to be thorough and think I found two mistakes.
We also need some tests... :-)

}

f08_other_intrinsics = {
"STORAGE_SIZE": {"min": 1, "max": 3},

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.

Should be max 2 I think?


f08_other_intrinsics = {
"STORAGE_SIZE": {"min": 1, "max": 3},
"PARITY": {"min": 1, "max": 2},

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.

generic_function_names.update(f08_bessel_functions)

specific_function_names = F2003_Intrinsic_Name.specific_function_names

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.

You need some tests :-) One for each new group added here will do I think. We could probably ask Claude to write a whole suite of tests for all of the intrinsics if you fancy trying that? Or could be a challenge for Hannah?

@arporter arporter added reviewed with actions PR has been reviewed and is back with developer and removed under review labels Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed with actions PR has been reviewed and is back with developer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants