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
Appending to an array whose domain is already exhausted should be an error, however it results in unsoundness (assert false; passes).
assert false;
Put the following in a file oops.ivy.
oops.ivy
#lang ivy1.8 include collections instance domain_t : iterable type range_t instance array_t : array(domain_t, range_t) action oops = { var a: array_t; a := array_t.create(domain_t.max, 0); a := a.append(0); assert false; } export oops
Check the file with the following command.
$ ivy_check trace=true oops.ivy
Removing line 11 a := a.append(0); fixes the issue (line 12 assert false; fails).
a := a.append(0);
On kenmcmil/ivy@dbe45e7 on macOS Sonoma.
kenmcmil/ivy
dbe45e7
Found by @nano-o.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Appending to an array whose domain is already exhausted should be an error, however it results in unsoundness (
assert false;
passes).Steps to reproduce
Put the following in a file
oops.ivy
.Check the file with the following command.
$ ivy_check trace=true oops.ivy
assert false;
should fail.Removing line 11
a := a.append(0);
fixes the issue (line 12assert false;
fails).Present in versions
On
kenmcmil/ivy
@dbe45e7
on macOS Sonoma.Found by @nano-o.
The text was updated successfully, but these errors were encountered: