Expand JET.jl static analysis test coverage #398
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR significantly expands the JET.jl test suite to improve static analysis coverage:
alg_order)alg_autodifffunction for all implicit solversdiffeqgpunormwith Float64, Complex, and ForwardDiff.Dual typesmake_prob_compatiblewith ODEProblemJET Analysis Summary
I ran
JET.report_package("DiffEqGPU")and analyzed key functions. The package is already well-typed:diffeqgpunorm,make_prob_compatible,alg_autodiff, etc.) are type-stableinitfunctions are type-stableSome false positives were identified (related to empty tuple indexing and callback
nothingchecks) that are properly guarded at runtime but JET cannot fully reason about.Test plan
Changes
test/jet_tests.jl- Significantly expanded JET test coveragetest/Project.toml- Added SciMLBase as test dependency (needed for CallbackSet in tests)🤖 Generated with Claude Code
cc @ChrisRackauckas