Skip to content

[issue26] Fix wrong assumption in splits equality#27

Open
Martin1887 wants to merge 1 commit intojendrikseipp:scorpionfrom
Martin1887:fix#26
Open

[issue26] Fix wrong assumption in splits equality#27
Martin1887 wants to merge 1 commit intojendrikseipp:scorpionfrom
Martin1887:fix#26

Conversation

@Martin1887
Copy link
Contributor

A values of size 1 does not mean that the abstract state consists of 2 values in such variable.

Fixes #26

A `values` of size 1 does not mean that the abstract state consists
of 2 values in such variable.

Fixes jendrikseipp#26
// subset of the state (the wanted values) may be even only one
// value (e.g., a precondition), so we cannot know if we are
// separating two values and so the order (`value` and `values`)
// matters.
Copy link
Owner

Choose a reason for hiding this comment

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

If you're right and my code is incorrect, then we should simplify the whole if-statement to

Suggested change
// matters.
return value == other.value && values == other.values;

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.

Wrong assumption in split equality

2 participants