Skip to content

Conversation

@niaow
Copy link
Member

@niaow niaow commented Jan 7, 2026

This attaches the maximum valid len/cap to string/slice fuction parameters. The compiler can use this to:

  1. Prove that index math will not overflow
  2. Prove that signed and unsigned comparisons are equivalent

This depends on tinygo-org/go-llvm#72

Closes #5147

This attaches the maximum valid len/cap to string/slice fuction parameters.
The compiler can use this to:
1. Prove that index math will not overflow
2. Prove that signed and unsigned comparisons are equivalent
@niaow
Copy link
Member Author

niaow commented Jan 8, 2026

This is failing because the bindings changed the default LLVM version to 21 which we do not support

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

Successfully merging this pull request may close these issues.

1 participant