Skip to content

Add check if can be negative in equality - fix 2156598#219

Merged
srba merged 1 commit into
TAPAAL:mainfrom
mtygesen:negative-equality-simplification-2156598
Jul 2, 2026
Merged

Add check if can be negative in equality - fix 2156598#219
srba merged 1 commit into
TAPAAL:mainfrom
mtygesen:negative-equality-simplification-2156598

Conversation

@mtygesen

Copy link
Copy Markdown
Contributor

Engine assumed that place expressions are always non-negative and rewrites E == 0 to E <= 0, which is wrong when it contains subtractions:
https://bugs.launchpad.net/tapaal/+bug/2156598

@srba srba self-requested a review July 1, 2026 12:18

@srba srba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the problem and it is consistent on MCC 26 reachability queries with the main branch.

@srba srba merged commit 50b1a4f into TAPAAL:main Jul 2, 2026
4 of 7 checks passed
@mtygesen mtygesen deleted the negative-equality-simplification-2156598 branch July 6, 2026 14:38
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