Skip to content

Variability: Do not overwrite feature attribute assignments if not necessary - #1931

Open
kbirken wants to merge 4 commits into
maintenance/mps20241from
bugfix/dont_replace_identical_attribute_vals_1921
Open

Variability: Do not overwrite feature attribute assignments if not necessary#1931
kbirken wants to merge 4 commits into
maintenance/mps20241from
bugfix/dont_replace_identical_attribute_vals_1921

Conversation

@kbirken

@kbirken kbirken commented Aug 27, 2026

Copy link
Copy Markdown
Member

When the solver runs on a configuration, compulsory attribute values are set if the value is mandatory. If the solver computes the previous value again, the value expression has been replaced. This has a couple of drawbacks, as the node identity of the value (e.g. a NumberLiteral) will be changed although the semantic value stays the same.

The PR adds a test which reproduces the problem and introduces the fix. It also does some API changes necessary for solving the companion PR in IETS3/iets3.core#1781.

Additionally, the helper classes AssignmentValueMap and AssignmentValueList have been introduced to make the new code more readable and also refactor the existing code.

CHANGELOG has been updated.

Note: The API for iets3.core has been changed. So iets3.core has to be adapted to use this version of iets3.opensource. See also the companion PR in IETS3/iets3.core#1781.

TODO: I keep separate commits to make the review easier. Do not merge from maintenance/mps20241, instead squash the commits after the review.

This solves #1921.

@kbirken
kbirken requested a review from dbinkele August 27, 2026 15:28
@kbirken kbirken self-assigned this Aug 27, 2026
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.

1 participant