Skip to content

fix(pumpkin-propagators): Prevent overflow when calculating new bound in linear inequality - #676

Open
ImkoMarijnissen wants to merge 1 commit into
mainfrom
fix/linear-inequality-overflow
Open

ImkoMarijnissen wants to merge 1 commit into
mainfrom
fix/linear-inequality-overflow

Conversation

@ImkoMarijnissen

Copy link
Copy Markdown
Contributor

Currently, we perform the calculation of the new bound in linear inequalities in i32, where we perform additional checks on the lower-bound of the sum on the left-hand side to rule out certain scenarios.

In this PR, the calculation of the bound is done in i64 and the check on the lower-bound sum is removed.

  1. In the case of an overflow of the lower-bound of the left-hand side this is correct, since detect_inconsistency runs first and detects this case.
  2. In the case of an underflow, propagations can still occur (see the test case lower_bound_sum_below_i32_range_still_propagates)

@ImkoMarijnissen ImkoMarijnissen changed the title fix(pumpkin-propagators): Prevent overflow when calculating new bound fix(pumpkin-propagators): Prevent overflow when calculating new bound in linear inequality Dec 3, 2026

This branch has not been deployed

No deployments
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