We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
module m { trait Set<S> { function v(s:S):set<int> // abstract value predicate has(s:S,t:int) decreases 0,this ensures has(s,t) <==> t in v(s) } datatype SetC = SetC(rep:set<int>) { function v():set<int> { rep } predicate has(t:int) decreases 0 { t in rep } } trait SetStaticC extends Set<SetC> { function v(s:SetC):set<int> { s.v() } predicate has(s:SetC,t:int) ensures has(s,t) <==> t in v(s) { s.has(t) } } }
not crashing
(6 errors, starting with the following) Dafny encountered an internal error. Please report it at https://github.com/dafny-lang/dafny/issues. System.ArgumentException: Boogie program had 2 type errors: Microsoft.Dafny.BoogieRangeToken: invalid argument types (Box and ref) to binary operator == Microsoft.Dafny.BoogieRangeToken: invalid argument types (Box and ref) to binary operator != at Microsoft.Boogie.ExecutionEngine.GetVerificationTasks(Program program) at Microsoft.Dafny.LanguageServer.Language.DafnyProgramVerifier.GetVerificationTasksAsync(ExecutionEngine engine, ResolutionResult resolution, ModuleDefinition moduleDefinition, CancellationToken cancellationToken) at Microsoft.Dafny.Compilation.<>c__DisplayClass54_0.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func2 taskFilter, Nullable1 randomSeed) at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func2 taskFilter, Nullable1 randomSeed) at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func2 taskFilter, Nullable1 randomSeed) at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func2 taskFilter, Nullable1 randomSeed) at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func2 taskFilter, Nullable1 randomSeed)
2 taskFilter, Nullable
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Failing code
Steps to reproduce the issue
Expected behavior
not crashing
Actual behavior
(6 errors, starting with the following)
Dafny encountered an internal error. Please report it at https://github.com/dafny-lang/dafny/issues.
System.ArgumentException: Boogie program had 2 type errors:
Microsoft.Dafny.BoogieRangeToken: invalid argument types (Box and ref) to binary operator ==
Microsoft.Dafny.BoogieRangeToken: invalid argument types (Box and ref) to binary operator !=
at Microsoft.Boogie.ExecutionEngine.GetVerificationTasks(Program program)
at Microsoft.Dafny.LanguageServer.Language.DafnyProgramVerifier.GetVerificationTasksAsync(ExecutionEngine engine, ResolutionResult resolution, ModuleDefinition moduleDefinition, CancellationToken cancellationToken)
at Microsoft.Dafny.Compilation.<>c__DisplayClass54_0.<b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func
2 taskFilter, Nullable
1 randomSeed)at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func
2 taskFilter, Nullable
1 randomSeed)at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func
2 taskFilter, Nullable
1 randomSeed)at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func
2 taskFilter, Nullable
1 randomSeed)at Microsoft.Dafny.Compilation.VerifyUnverifiedSymbol(Boolean onlyPrepareVerificationForGutterTests, ICanVerify canVerify, ResolutionResult resolution, Func
2 taskFilter, Nullable
1 randomSeed)The text was updated successfully, but these errors were encountered: