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

Crash with bad trigger #5898

Open
ajewellamz opened this issue Nov 4, 2024 · 0 comments
Open

Crash with bad trigger #5898

ajewellamz opened this issue Nov 4, 2024 · 0 comments
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@ajewellamz
Copy link
Collaborator

Dafny version

4.7 4.8 4.9

Code to produce this issue

predicate method SequenceEqual<T(==)>(seq1 : seq<T>, seq2 : seq<T>, start1 : nat, start2 : nat, size : nat)
  : (ret : bool)
    requires start1 + size <= |seq1|
    requires start2 + size <= |seq2|
  {
    forall i : nat  {:trigger i} | 0 <= i < size :: seq1[start1+i] == seq2[start2+i]
  }

Command to run and resulting output

dafny verify --function-syntax 3 seqeq.dfy

Unhandled exception. System.ArgumentException

What happened?

I expected an error, but not a crash.

What type of operating system are you experiencing the problem on?

Mac

@ajewellamz ajewellamz added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

No branches or pull requests

1 participant