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

state_selection: Correct is_not_present condition #1890

Merged
merged 5 commits into from
Oct 20, 2022

Conversation

Keno
Copy link
Contributor

@Keno Keno commented Oct 19, 2022

The is_present condition is supposed to be equivalent to the variable not appearing in the system at all (for example, it could appear as a*D(v), where a ends up aliased to 0, meaning that we don't notice that it does not appear in the system until we've performed alias analysis. In these kinds of situations, a variable is present in the system if, either:

  1. It appears in the graph (i.e. it's used in the equations), or
  2. It is irreducible (and was in the alias graph).

The condition was trying to check this, but didn't quite get the negations correct, resulting in sub-optimal state selection.

Keno and others added 5 commits October 19, 2022 19:33
The is_present condition is supposed to be equivalent to the variable
not appearing in the system at all (for example, it could appear as
`a*D(v)`, where `a` ends up aliased to `0`, meaning that we don't
notice that it does not appear in the system until we've performed
alias analysis. In these kinds of situations, a variable is present
in the system if, either:

1. It appears in the graph (i.e. it's used in the equations), or
2. It is irreducible (and was in the alias graph).

The condition was trying to check this, but didn't quite get the
negations correct, resulting in sub-optimal state selection.
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.

None yet

2 participants