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

Comparisons involving certain state operations could result in an internal compiler error #195

Closed
achidlow opened this issue Apr 16, 2024 · 0 comments · Fixed by #196
Closed
Assignees
Labels
bug Something isn't working

Comments

@achidlow
Copy link
Contributor

Example program demonstrating the issue:

    def __init__(self) -> None:
        self.key = GlobalState(UInt64(0))

    def approval_program(self) -> bool:
        assert self.key.maybe()[0] == self.key.maybe()[0]
        return True

    def clear_state_program(self) -> bool:
        return True

Fails with:

intrinsics/overloaded.py:13:16 critical: Numeric comparison mapped to any type
                                                assert self.key.maybe()[0] == self.key.maybe()[0]
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@achidlow achidlow added the bug Something isn't working label Apr 16, 2024
@achidlow achidlow self-assigned this Apr 16, 2024
achidlow added a commit that referenced this issue Apr 16, 2024
…pile.

---------

This fix goes a bit further, and removes any possible usage of AVMType.any in the IR or MIR layers.

Also, allow dev-only notes (ie not included in changelog) with the --------- seperator in commit messages.

Don't output debug messages about failure to optimise app global/local state functions of constant args
achidlow added a commit that referenced this issue Apr 16, 2024
…pile.

---------

This fix goes a bit further, and removes any possible usage of AVMType.any in the IR or MIR layers.

Also, allow dev-only notes (ie not included in changelog) with the --------- seperator in commit messages.

Don't output debug messages about failure to optimise app global/local state functions of constant args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant