-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Allow write_bits builtin and add a few more optimizations #1082
Conversation
9257f9e
to
c44d9a1
Compare
crates/uplc/src/optimize/shrinker.rs
Outdated
| DefaultFunction::AppendByteString | ||
| DefaultFunction::LessThanEqualsByteString | ||
| DefaultFunction::LessThanByteString => arg_stack.iter().all(|arg| { | ||
| DefaultFunction::LessThanByteString | ||
| DefaultFunction::DecodeUtf8 |
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.
I don't believe this is generally true? Decoding an invalid bytestring will throw / error. Though maybe I am misunderstanding this function (does it only look at arguments?)
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.
Oh you are right. I'll remove it.
Will merge tomorrow unless anything else is needed. |
This allows conditions like ```expect x == 1``` to match performance with ```x == 1 && ...``` Also change builtins forcing to accommodate the new case-constr apply optimization
…o had fun with test_1 mint script context validator
… Also no inline remover needs to run separately from other uplc transformations
90fa7f6
to
d559e38
Compare
No description provided.