Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Jul 15, 2024

Fix removal of constraints using dimensions in RemoveUnusedSymbols.

Removing a constraint on a dimension is invalid, even if the
dimension is unused in the affine map. The constraint still
restricts the domain of the map.

In some cases we could use the constraint to tighten the bounds
of the unused dimension instead, e.g. if both d0 and s0 are unused
in:

d0 in [0, 100]
s0 in [2, 3]
d0 + s0 in [2, 3]

We could change the bound of d0 to [0, 1]. But this is not always possible and
requires some extra work.

@copybara-service copybara-service bot changed the title Fix removal of constraints using dimensions. Fix removal of constraints using dimensions in RemoveUnusedSymbols. Jul 15, 2024
Removing a constraint on a dimension is invalid, even if the
dimension is unused in the affine map. The constraint still
restricts the domain of the map.

In some cases we could use the constraint to tighten the bounds
of the unused dimension instead, e.g. if both d0 and s0 are unused
in:

```
d0 in [0, 100]
s0 in [2, 3]
d0 + s0 in [2, 3]
```

We could change the bound of d0 to [0, 1]. But this is not always possible and
requires some extra work.

PiperOrigin-RevId: 652431649
@copybara-service copybara-service bot merged commit 5ab60da into main Jul 15, 2024
@copybara-service copybara-service bot deleted the test_652413273 branch July 15, 2024 11:41
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