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

removal index (is 1) should be < len (is 1) #1009

Closed
waalge opened this issue Sep 4, 2024 · 2 comments · Fixed by #1019
Closed

removal index (is 1) should be < len (is 1) #1009

waalge opened this issue Sep 4, 2024 · 2 comments · Fixed by #1019
Assignees
Labels
bug Something isn't working code gen Untyped Plutus Core code generation

Comments

@waalge
Copy link
Contributor

waalge commented Sep 4, 2024

What Git revision are you using?

aiken v1.1.0+0a8f1f4

What operating system are you using, and which version?

nixos

Describe what the problem is?

From https://github.com/aiken-lang/fuzz/tree/waalge/try-aiken-1-1-0

$aiken check
    Compiling aiken-lang/fuzz 1.0.0 (/home/waalge/x/kompact/fuzz)
    Compiling aiken-lang/stdlib 2.0.0 (/home/waalge/x/kompact/fuzz/build/packages/aiken-lang-stdlib)

   aiken::fatal::error
   Whoops! You found a bug in the Aiken compiler.

   Please report this error at https://github.com/aiken-lang/aiken/issues/new.
   In your bug report please provide the information below and if possible the code
   that produced it.

   Operating System: linux
   Architecture:     x86_64
   Version:          v1.1.0+0a8f1f4

   crates/aiken-lang/src/gen_uplc/builder.rs:559:38

       removal index (is 1) should be < len (is 1)

What should be the expected behavior?

@waalge
Copy link
Contributor Author

waalge commented Sep 4, 2024

More specifically :

aiken check -m prop_set_between_distribution

@KtorZ
Copy link
Member

KtorZ commented Sep 4, 2024

Sadly, a known issue that coming from an optimization on recursive static function. For now, the work-around is to rebase on top of: aiken-lang/fuzz@3f5e5dd and avoid anonymous recursive functions with static arguments.

@KtorZ KtorZ added bug Something isn't working code gen Untyped Plutus Core code generation labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code gen Untyped Plutus Core code generation
Projects
Status: ✅ In Next Release
Development

Successfully merging a pull request may close this issue.

3 participants