You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const slice s = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"s;
() main () {
~dump(s);
}
This slice constant is 256 digits long (1024 bits).
Current Behavior
FunC successfully compiles into:
"Asm.fif" include
PROGRAM{
DECLPROC main
main PROC:<{
x{abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd} PUSHSLICE
s0 DUMP
DROP
}>
}END>c
Which throws an error when running:
libc++abi: terminating due to uncaught exception of type vm::CellBuilder::CellCreateError
Expected Behavior
FunC should have thrown a compilation error due to the string being too long.
The text was updated successfully, but these errors were encountered:
Gusarich
changed the title
FunC does not throw on 1024 bits long slice constant creation
FunC does not throw on 1024 bits long slice constant creation with s literal
Sep 5, 2024
Code:
This slice constant is 256 digits long (1024 bits).
Current Behavior
FunC successfully compiles into:
Which throws an error when running:
Expected Behavior
FunC should have thrown a compilation error due to the string being too long.
The text was updated successfully, but these errors were encountered: