Skip to content

Refactor goblint.constraint dune library#1745

Merged
sim642 merged 11 commits intogoblint:masterfrom
arkocal:demand_constr
May 16, 2025
Merged

Refactor goblint.constraint dune library#1745
sim642 merged 11 commits intogoblint:masterfrom
arkocal:demand_constr

Conversation

@arkocal
Copy link
Copy Markdown
Contributor

@arkocal arkocal commented May 15, 2025

This PR should implement what is already in #1743 , while also providing lifters so that not all solvers must be modified. It should also make sure this is in line with the work on create nodes for concurrent solvers.

While going through the complete file to make sure everything is done at the right place, I have realized that some complexity has grown here and it would make sense to remove some complexity before introducing some, so I will keep this running as a draft, but feel free to drop comments if you disagree with any of the changes or want to discuss anything.

Every commit should be more or less self contained.

arkocal added 2 commits May 14, 2025 15:23
Since this is the simplest case that other (semantically) built upon, it is easier to understand when its first read
@arkocal arkocal requested review from michael-schwarz and sim642 May 15, 2025 07:04
@arkocal arkocal added feature in progress performance Analysis time, memory usage labels May 15, 2025
@arkocal
Copy link
Copy Markdown
Contributor Author

arkocal commented May 15, 2025

I have unwrapped the module, as it was marked as TODO in the dune file. Now I see there are also other modules that have this. Should we still proceed with that. I think it with submodules it becomes a bit more important to not pollute the global namespace.

If so, what is the right way to go about the documentation here?

ps. Since most things defined here are types anyway, I did not create .mli files.

@arkocal arkocal changed the title Demanding Constraint Systems Restructure Constraint Systems May 15, 2025
@arkocal arkocal added cleanup Refactoring, clean-up and removed feature performance Analysis time, memory usage labels May 15, 2025
@sim642
Copy link
Copy Markdown
Member

sim642 commented May 15, 2025

If so, what is the right way to go about the documentation here?

I did some fixes to the wrapped goblint.constraint documentation now.

@arkocal arkocal marked this pull request as ready for review May 15, 2025 15:23
@sim642 sim642 changed the title Restructure Constraint Systems Refactor goblint.constraint dune library May 16, 2025
@sim642 sim642 added this to the v2.6.0 milestone May 16, 2025
@sim642 sim642 merged commit d5b7edb into goblint:master May 16, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Refactoring, clean-up

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants