Skip to content

XCSP3 ne parser fix#1056

Merged
IgnaceBleukx merged 3 commits into
masterfrom
1027-xcsp3-ne-nary
Jul 18, 2026
Merged

XCSP3 ne parser fix#1056
IgnaceBleukx merged 3 commits into
masterfrom
1027-xcsp3-ne-nary

Conversation

@ThomSerg

Copy link
Copy Markdown
Collaborator

Closes #1027

'ne' is an n-ary operator

@ThomSerg ThomSerg added this to the v0.20 milestone Jul 17, 2026
@ThomSerg ThomSerg added the simple to review Simple change to review, e.g., a oneliner. label Jul 17, 2026
Comment thread cpmpy/tools/xcsp3/parser_callbacks.py Outdated
"gt": (2, lambda x, y: x > y),
"ne": (2, lambda x, y: x != y),
# ne is n-ary in XCSP3 (like eq): ne(x0,...,xn) is the logical negation of eq, i.e. "not all equal"
# (not pairwise AllDifferent). Binary case stays a plain disequality.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You mean "not allequal"? Maybe we should just post is as that as well? ~cp.AllEqual(x)

@IgnaceBleukx
IgnaceBleukx merged commit 196d533 into master Jul 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

simple to review Simple change to review, e.g., a oneliner.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser error in xcsp3

2 participants