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

Experimental codegen with no optimizations fails #4162

Open
ritzdorf opened this issue Jun 21, 2024 · 0 comments
Open

Experimental codegen with no optimizations fails #4162

ritzdorf opened this issue Jun 21, 2024 · 0 comments

Comments

@ritzdorf
Copy link
Contributor

ritzdorf commented Jun 21, 2024

Version Information

  • vyper Version (output of vyper --version): 0.4.0+commit.e9db8d9f
  • OS: linux
  • Python Version (output of python --version): Python 3.11.8

What's your issue about?

When trying to compile this contract:

@external
def foo() -> Bytes[32]:
    y: uint256 = 0
    if True:
        y += 1
    return abi_encode(y)

with the command:

vyper --experimental-codegen --optimize none a.vy

one gets the error:

AssertionError: Not implemented yet

Please note that compilation will be successful with --optimize gas and --optimize codesize.

This might be related to #4070

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

No branches or pull requests

1 participant