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

chore(BV, CP): Refactor propagation mechanism #1185

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

bclement-ocp
Copy link
Collaborator

This patch simplifies the propagation mechanism (currently used in the
bit-vector relations only) in order to accomodate different types of
propagators more easily.

In particular, there is now a single generic (and configurable) loop
that runs the propagators instead of a spaghetti of different loops for
each kind of propagators.

Note: This PR depends on and includes #1152 and #1154. Only the commit titled "chore(BV, CP): Refactor propagation mechanism" (and later commits) are part of this PR.

@bclement-ocp bclement-ocp force-pushed the better-prop branch 8 times, most recently from f61432e to 9efef42 Compare August 6, 2024 07:50
src/lib/util/type.mli Outdated Show resolved Hide resolved
src/lib/reasoners/bitv_rel.ml Outdated Show resolved Hide resolved
src/lib/reasoners/bitv_rel.ml Outdated Show resolved Hide resolved
@Halbaroth
Copy link
Collaborator

Please rebase and we can merge :)

This patch simplifies the propagation mechanism (currently used in the
bit-vector relations only) in order to accomodate different types of
propagators more easily.

In particular, there is now a single generic (and configurable) loop
that runs the propagators instead of a spaghetti of different loops for
each kind of propagators.
@bclement-ocp bclement-ocp merged commit 1445b14 into OCamlPro:next Aug 20, 2024
17 checks passed
@bclement-ocp bclement-ocp deleted the better-prop branch August 20, 2024 10:20
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Aug 28, 2024
Since OCamlPro#1185, when substitutions change the domain of a variable, we no
longer trigger propagations, which means that we can end up in a state
where the bitlist and interval domains are not consistent (i.e. running
[constrain_bitlist_from_interval] or [constrain_interval_from_bitlist]
would shrink some domains).

This was initially part of OCamlPro#1185 but was accidentally removed as part of
a simplification pass during review. Add it back.
bclement-ocp added a commit that referenced this pull request Aug 28, 2024
Since #1185, when substitutions change the domain of a variable, we no
longer trigger propagations, which means that we can end up in a state
where the bitlist and interval domains are not consistent (i.e. running
[constrain_bitlist_from_interval] or [constrain_interval_from_bitlist]
would shrink some domains).

This was initially part of #1185 but was accidentally removed as part of
a simplification pass during review. Add it back.
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