-
Notifications
You must be signed in to change notification settings - Fork 479
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
Logical operations #5970
Merged
Merged
Logical operations #5970
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
50081f0
Initial port of logical ops
kozross 62d1e1a
Add PlutusTx correspondents to the new builtins
kozross 0aa0091
Merge branch 'master' into koz/logical
kozross 119f162
Tests for logical operations
kozross f7d89ea
Merge branch 'master' into koz/logical
kozross 5bc7e1e
Rest of tests
kozross 33f4309
Merge branch 'master' into koz/logical
kozross 76b6fc5
Formatting of denotations
kozross 7b0b7f6
Rename byteStringReplicate to replicateByteString
kozross b32e3d3
Correct references to CIP-121
kozross e3f267d
Changelogs, document tests
kozross f014f20
Note commutativity for new operations
kozross c0abae3
Properly rename replicate builtin, add to plutus-tx-plugin
kozross 71a5381
Make new logical builtins available in V3
kozross 7c80f52
Merge branch 'master' into koz/logical
kozross 5206690
Fix links to CIP-122, use toOpaque and fromOpaque instead
kozross 8dcebb5
Correct all references to CIP-122
kozross f62c4de
Merge branch 'master' into koz/logical
kozross 9e215af
Rename bitwise builtins, use proper costing
kozross 983c380
Merge branch 'master' into koz/logical
kozross f567655
Bitwise primops will not be in Conway
kozross fa690f7
Rename tests to suit new primop names
kozross File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
plutus-core/changelog.d/20240510_104627_koz.ross_logical.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!-- | ||
A new scriv changelog fragment. | ||
|
||
Uncomment the section that is right (remove the HTML comment wrapper). | ||
--> | ||
|
||
<!-- | ||
### Removed | ||
|
||
- A bullet item for the Removed category. | ||
|
||
--> | ||
### Added | ||
|
||
- Logical operations as per [CIP-122](https://github.com/mlabs-haskell/CIPs/blob/koz/logic-ops/CIP-0122/CIP-0122.md). | ||
|
||
### Changed | ||
|
||
- References to CIP-87 have been corrected to refer to CIP-121. | ||
|
||
<!-- | ||
### Deprecated | ||
|
||
- A bullet item for the Deprecated category. | ||
|
||
--> | ||
<!-- | ||
### Fixed | ||
|
||
- A bullet item for the Fixed category. | ||
|
||
--> | ||
<!-- | ||
### Security | ||
|
||
- A bullet item for the Security category. | ||
|
||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
464 changes: 464 additions & 0 deletions
464
plutus-core/plutus-core/src/PlutusCore/Bitwise/Logical.hs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's lots of impressively fiddly code in here. I'm glad we have all those tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the reason why I have all these tests. I got it wrong enough times when I first wrote this that I needed the tests to make sure something wasn't subtly broken all the time.