Skip to content

Modular subtype #221

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

Merged
merged 6 commits into from
Jun 3, 2019
Merged

Modular subtype #221

merged 6 commits into from
Jun 3, 2019

Conversation

xbauch
Copy link
Contributor

@xbauch xbauch commented May 13, 2019

Adds the initial support for modular subtypes. Operators for the new type are nor included in this PR.

Copy link
Collaborator

@martin-cs martin-cs left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@xbauch xbauch force-pushed the feature/modular-subtype branch from c7d6b76 to b17b194 Compare May 13, 2019 15:44
Copy link
Contributor

@NlightNFotis NlightNFotis left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

looks reasonable to me, might be worth adding a range_check test for modular subtypes though?

Lower_Bound_Value : Integer;
Upper_Bound_Value : Integer;
begin

Choose a reason for hiding this comment

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

might be worth asserting that followed_mod_type is actually an unsigned or mod_type

@xbauch xbauch force-pushed the feature/modular-subtype branch from b17b194 to 3f2f88c Compare June 3, 2019 13:26
Petr Bauch and others added 6 commits June 3, 2019 14:50
bound-mod-type for non-power-two modulus and
bounded-unsignedbv-type for power-two modulus.
By following the origin mod type and extracting the bounds.
regarding the new bounded types.
taken from UKNI and simplified a bit. Also includes a range check.
and so we need to extend the range checking interface to accept unsigned.
@xbauch xbauch force-pushed the feature/modular-subtype branch from 3f2f88c to 708484e Compare June 3, 2019 13:57
@xbauch xbauch merged commit dce84f2 into diffblue:master Jun 3, 2019
@xbauch xbauch deleted the feature/modular-subtype branch June 10, 2019 12:40
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.

5 participants