Skip to content
New issue

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

feat!: Switch --function-syntax, --quantifier-syntax, and --unicode-char to Dafny 4.0 defaults #3623

Merged
merged 3 commits into from
Feb 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main-4.x' into main-4.0
  • Loading branch information
robin-aws authored Feb 23, 2023
commit c0d3e92adcb16a1afe5dce2aee2d2e9578566068
4 changes: 2 additions & 2 deletions Test/dafny0/ResolutionErrors.dfy.expect
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ ResolutionErrors.dfy(1137,13): Error: arguments must have comparable types (got
ResolutionErrors.dfy(1138,13): Error: arguments must have comparable types (got P<bool> and P<X>)
ResolutionErrors.dfy(1139,13): Error: arguments must have comparable types (got P<int> and P<bool>)
ResolutionErrors.dfy(1150,13): Error: new can be applied only to class types (got JJ)
ResolutionErrors.dfy(1158,37): Error: a set comprehension involved in a function definition is not allowed to depend on the set of allocated references, but values of 'o' may contain references (see documentation for 'older' parameters)
ResolutionErrors.dfy(1159,31): Error: a set comprehension involved in a function definition is not allowed to depend on the set of allocated references, but values of 'o' may contain references (see documentation for 'older' parameters)
ResolutionErrors.dfy(1158,37): Error: a set comprehension involved in a function definition is not allowed to depend on the set of allocated references, but values of 'o' (of type 'object') may contain references (see documentation for 'older' parameters)
ResolutionErrors.dfy(1159,31): Error: a set comprehension involved in a function definition is not allowed to depend on the set of allocated references, but values of 'o' (of type 'object') may contain references (see documentation for 'older' parameters)
ResolutionErrors.dfy(1165,27): Error: set comprehensions in non-ghost contexts must be compilable, but Dafny's heuristics can't figure out how to produce or compile a bounded set of values for 'o'
ResolutionErrors.dfy(1173,15): Error: arguments to / must be numeric or bitvector types (got set<bool>)
ResolutionErrors.dfy(1180,20): Error: a call to a possibly non-terminating method is allowed only if the calling method is also declared (with 'decreases *') to be possibly non-terminating
Expand Down
4 changes: 2 additions & 2 deletions Test/dafny4/Bug81.dfy
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

ghost function {:opaque} RefineSeqToSeq<T,U>(s:seq<T>, refine_func:T~>U) : seq<U>
reads refine_func.reads;
function {:opaque} RefineSeqToSeq<T, U>(s:seq<T>, refine_func: T ~> U) : seq<U>
reads refine_func.reads
{
if |s| == 0 then []
else RefineSeqToSeq(s[1..], refine_func)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.