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
It seems that we are not handling the fail label in for-loops correctly. This correct example
module experiments::Compiler::Examples::Tst
value main(list[value] args){int n = 0; loop:for(int i <- [1,2,3,4], n <= 3){ if (n == 3) fail loop; n = n + 1; } return n == 3;}
leads during loading to:
|rascal://experiments::Compiler::RVM::Run|(217,715,<12,0>,<23,28>): Java("RuntimeException","PANIC: undefined label FAIL_loop")
at org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.CodeBlock.getLabelPC(|file:///CodeBlock.java|(0,0,<134,0>,<134,0>))
The text was updated successfully, but these errors were encountered:
It seems that we are not handling the fail label in for-loops correctly. This correct example
leads during loading to:
The text was updated successfully, but these errors were encountered: