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
Running this with dafny /runAllTests:1 test.dfy gives the following:
Dafny program verifier finished with 1 verified, 0 errors
Unhandled exception. System.AggregateException: One or more errors occurred. (Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index'))
---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at Microsoft.Dafny.Compilers.SinglePassCompiler.TrCallStmt(CallStmt s, String receiverReplacement, ConcreteSyntaxTree wr)
at Microsoft.Dafny.Compilers.SinglePassCompiler.TrStmt(Statement stmt, ConcreteSyntaxTree wr)
at Microsoft.Dafny.Compilers.SinglePassCompiler.TrStmtList(List`1 stmts, ConcreteSyntaxTree writer)
at Microsoft.Dafny.Compilers.SinglePassCompiler.TrStmt(Statement stmt, ConcreteSyntaxTree wr)
at Microsoft.Dafny.Compilers.CsharpCompiler.EmitHaltRecoveryStmt(Statement body, String haltMessageVarName, Statement recoveryBody, ConcreteSyntaxTree wr)
Of course, I understand running a test with a parameter perhaps doesn't make sense. But, it perhaps could produce a more useful error message! For reference, my dafny version is 3.7.3.40719.
The text was updated successfully, but these errors were encountered:
robin-aws
added
the
crash
Dafny crashes on this input, or generates malformed code that can not be executed
label
Aug 8, 2022
At the moment, attempting to run tests with parameters generates a rather unhelpful error message (in fact, a stack trace). Example is:
Running this with
dafny /runAllTests:1 test.dfy
gives the following:Of course, I understand running a test with a parameter perhaps doesn't make sense. But, it perhaps could produce a more useful error message! For reference, my dafny version is
3.7.3.40719
.The text was updated successfully, but these errors were encountered: