Skip to content

Improve static analysis: fix BigInt compatibility, enhance JET tests#66

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:static-improvements-20260107-173456
Jan 8, 2026
Merged

Improve static analysis: fix BigInt compatibility, enhance JET tests#66
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:static-improvements-20260107-173456

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

  • Fix _is_matlab_compatible_eltype() to reject BigInt - Previously <:Integer incorrectly matched BigInt since BigInt <: Integer, but MATLAB doesn't support arbitrary precision integers
  • Add return type annotation ::Nothing to _check_matlab_compatible() for better static analysis
  • Include JET tests in runtests.jl so they run as part of the standard test suite
  • Enhance JET tests with:
    • @test_opt for type stability verification
    • Tests for type compatibility functions
    • Return type inference validation
  • Add UInt and BigInt precompilation in the workload

Test plan

  • Run JET tests - all 38 tests pass
  • Verify BigInt is now correctly rejected by type compatibility check
  • Verify formatting passes with Runic.jl
  • CI tests

cc @ChrisRackauckas

🤖 Generated with Claude Code

- Add return type annotation `::Nothing` to `_check_matlab_compatible()`
- Fix `_is_matlab_compatible_eltype()` to reject BigInt (MATLAB doesn't
  support arbitrary precision integers). Previously `<:Integer` incorrectly
  matched BigInt since `BigInt <: Integer`.
- Include jet_tests.jl in runtests.jl so JET tests run as part of test suite
- Enhance JET tests with:
  - `@test_opt` for type stability verification
  - Tests for type compatibility functions
  - Return type inference validation
- Add UInt and BigInt precompilation in workload

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 4225352 into SciML:master Jan 8, 2026
2 of 3 checks passed
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.

3 participants