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

Intersection: code clean for intvalued & fix stackoverflow caused by re-intersection of concrete var. #49073

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

N5N3
Copy link
Member

@N5N3 N5N3 commented Mar 21, 2023

Fix #49049 (comment)

The 1st commit cleans the usage of intvalued.
For cases with intvalued == 2, we now records the correct occurs_inv (== 2), thus re-intersection would always happen.

The 2nd commit makes UnionAll‘s re-intersection restore the bound change if v.concrete (just like vb.occurs_cov == 1 && !var_occurs_invariant(u->body, u->var, 0))
This helps to avoid circular constraints and fix the added MWE.
Since v1.9 also has this problem, I think we'd better backport this.

This commit drops the usage of `intvalued==2`

We now records the correct `occurs_inv` (== 2), thus re-intersection would always happen if needed.
@N5N3 N5N3 added the domain:types and dispatch Types, subtyping and method dispatch label Mar 21, 2023
Copy link
Sponsor Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

@nanosoldier runtests()

@N5N3
Copy link
Member Author

N5N3 commented Mar 21, 2023

Looks like the magic didnt work.

@nanosoldier runtests()

@maleadt
Copy link
Member

maleadt commented Mar 23, 2023

It did work, but PkgEval crashed.

@nanosoldier runtests()

@nanosoldier
Copy link
Collaborator

Your package evaluation job has completed - possible new issues were detected.
A full report can be found here.

@N5N3
Copy link
Member Author

N5N3 commented Mar 24, 2023

The result looks clean. It's strange that PopGenCore.jl passed on previous version.
Will take a look on GaussianMixtureAlignment

@N5N3 N5N3 merged commit 8ca8ef3 into JuliaLang:master Mar 24, 2023
@N5N3 N5N3 deleted the interbug-find branch March 24, 2023 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:types and dispatch Types, subtyping and method dispatch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants