Skip to content

[UPLC] [Optimization] Improve case-of-case #7210

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

effectfully
Copy link
Contributor

Makes UPLC case-of-case a bit less restrictive by allowing it to produce duplicate branches if they're small enough. Doesn't seem to have any effect on anything (provided I implemented it right, there's no tests), so is probably not worth it.

pure $ constrs <&> \(_, c) -> CaseReduce.processTerm $ Case annOuter c altsOuter)
for constrsDupl $ \((_, c), dupl) -> do
let alt = CaseReduce.processTerm $ Case annOuter c altsOuter
guard $ not dupl || termSize alt <= 3
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried making it 300, no effect either.

@effectfully effectfully force-pushed the effectfully/optimization/improve-uplc-case-of-case branch from c93f9ff to 797f08c Compare July 15, 2025 07:14
Copy link
Contributor

github-actions bot commented Jul 15, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://IntersectMBO.github.io/plutus/pr-preview/pr-7210/

Built to branch gh-pages at 2025-07-15 07:17 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant