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

fixed issues discovered bj JET.jl #138

Merged
merged 4 commits into from
Nov 8, 2022

Conversation

dpinol
Copy link

@dpinol dpinol commented Sep 3, 2022

Hi,
after patching JET.jl with this not yet merged PR, it's now possible to run report_package(Metatheory) with Julia 1.8.

The current PR fixes most real issues reported by JET. Namely:

  • It removes old functions which are never called, some of which are broken
  • It fixes references to undefined variables
  • It adds something(x) after checking x !== nothing to get more optimized code.

Dani Pinyol added 4 commits September 3, 2022 07:53
They're not used anymore and _isinteger/_isreal would fail because SymbolicUtils is not used anymore
they're not used and they require <ₑ, which is not defined
bugs detected by jet
also fallback error at rec_extract had a bug
bugs detected by jet
code is slightly faster
detected by JET
@codecov-commenter
Copy link

Codecov Report

Merging #138 (c2afdce) into master (305a9d2) will increase coverage by 0.20%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master     #138      +/-   ##
==========================================
+ Coverage   76.64%   76.84%   +0.20%     
==========================================
  Files          15       15              
  Lines        1400     1382      -18     
==========================================
- Hits         1073     1062      -11     
+ Misses        327      320       -7     
Impacted Files Coverage Δ
src/EGraphs/analysis.jl 85.18% <0.00%> (+1.03%) ⬆️
src/EGraphs/saturation.jl 93.33% <0.00%> (-0.08%) ⬇️
src/Rewriters.jl 32.32% <0.00%> (ø)
src/utils.jl 37.93% <ø> (+1.08%) ⬆️
src/EGraphs/egraph.jl 89.68% <100.00%> (-0.17%) ⬇️
src/EGraphs/ematch.jl 92.00% <100.00%> (-0.07%) ⬇️
src/EGraphs/Schedulers.jl 39.18% <0.00%> (-0.82%) ⬇️
src/Patterns.jl 72.34% <0.00%> (-0.58%) ⬇️
... and 3 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@0x0f0f0f
Copy link
Member

0x0f0f0f commented Sep 7, 2022

I guess the failures are not related to this MR, but I still have to check manually, I'll merge after checking. Thanks a lot

@dpinol
Copy link
Author

dpinol commented Sep 12, 2022

fyi, latest 0.6.2 release can now analyse Metatheory.jl

@0x0f0f0f 0x0f0f0f changed the base branch from master to 2.0.0-DEV November 8, 2022 10:55
@0x0f0f0f 0x0f0f0f merged commit 6cedf96 into JuliaSymbolics:2.0.0-DEV Nov 8, 2022
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