Skip to content

Allow model vars to be unused in SAT formula#178

Merged
kellyma2 merged 1 commit into
rmohr:mainfrom
aszady:collapse.unused
Jan 27, 2026
Merged

Allow model vars to be unused in SAT formula#178
kellyma2 merged 1 commit into
rmohr:mainfrom
aszady:collapse.unused

Conversation

@aszady
Copy link
Copy Markdown
Contributor

@aszady aszady commented Jan 23, 2026

[ A small extract from a larger change #153 ]


Allow model vars to be unused in SAT formula
by reworking for loop in the results interpretation code.

Previously, the code iterated through SAT model and filtered only VarTypePackage vars. The new version iterates through all the vars in our model and filters similar type of vars.

The problem was: when a given variable is not used in any constraint, it won't appear in the SAT model. This is not happening yet, as each variable is used, but it's not guaranteed for this assumption to hold in the future. With this change we will be able to correctly identify the excluded packages.

@aszady aszady marked this pull request as ready for review January 23, 2026 15:24
by reworking for loop in the results interpretation code.

Previously, the code iterated through SAT model and filtered only `VarTypePackage` vars.
The new version iterates through all the vars in our model and filters similar type of vars.

The problem was: when a given variable is not used in any constraint, it won't appear in the SAT model.
This is not happening yet, as each variable is used, but it's not guaranteed for this assumption to hold in the future.
With this change we will be able to correctly identify the excluded packages.
@github-actions
Copy link
Copy Markdown

⚠️ Optional job e2e-bzlmod-toolchain-circular-dependencies failed ⚠️

  • exit status: 1

@kellyma2 kellyma2 merged commit b5ffeba into rmohr:main Jan 27, 2026
14 checks passed
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.

2 participants