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

CN: Add support for "bitwise and" in spec #426

Merged
merged 2 commits into from
Jul 24, 2024
Merged

CN: Add support for "bitwise and" in spec #426

merged 2 commits into from
Jul 24, 2024

Conversation

dc-mak
Copy link
Contributor

@dc-mak dc-mak commented Jul 24, 2024

No description provided.

^^ dot
in
fail { loc; msg = Generic msg }
| CN_band, SBT.Bits _ -> return (IT (Binop (BW_And, e1, e2), SBT.Bool, loc))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this saying the return type of BW_And is Bool?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Otherwise looks good to me.

@ZippeyKeys12 ZippeyKeys12 changed the title CN: Add support for bitwise and in spec CN: Add support for "bitwise and" in spec Jul 24, 2024
dc-mak added 2 commits July 24, 2024 17:48
An initial version of this commit had an incorrect type annotation in
`BW_And` in `compile.ml`; it was inconsequential because it is never
read/immediately written over by `Welltyped.infer`.
@dc-mak dc-mak merged commit 6c6bdf9 into master Jul 24, 2024
2 checks passed
@dc-mak
Copy link
Contributor Author

dc-mak commented Jul 24, 2024

Part of #291

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