Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rules(minion): add modulo #460

Merged
merged 2 commits into from
Nov 17, 2024
Merged

rules(minion): add modulo #460

merged 2 commits into from
Nov 17, 2024

Commits on Nov 16, 2024

  1. rules(minion): add modulo

    Add modulo expressions, parsing, and conversion rules to Minion.
    
    The undefinedness semantics for modulo are similar to those for
    division: it requires a bubble rule, asserting that for x % y, y!=0, to
    make it safe.
    
    Due to their similarity, the test cases for modulo in this patch are
    based on the division ones.
    
    See also: conjure-cp#454 (implementation of division rules)
    
    Closes: conjure-cp#456
    niklasdewally committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    7579a40 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2024

  1. refactor(ast): Rename DivEq and ModEq

    Rename DivEq to DivEqUndefZero and ModEq to ModulusEqUndefZero. The
    latter names match more closely to the underlying Minion constraints
    being used, reflecting that we are using the undefzero variants of both
    niklasdewally committed Nov 17, 2024
    Configuration menu
    Copy the full SHA
    77107a0 View commit details
    Browse the repository at this point in the history