-
Notifications
You must be signed in to change notification settings - Fork 32
Changed behaviour of ADTs (bags, seq) #1328
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
Comments
For seqs this does not work anymore: //:: cases axiomatic-data-types-sequence-examples-distinct-element-1
//:: verdict Pass
//:: tools silicon
class Test {
pure boolean distinct(seq<int> s) =
(\forall int i; 0 <= i && i < s.length;
(\forall int j; 0 <= j && j < s.length && s[i] == s[j]; i == j)
);
} At axiomatic-data-types-sequence-examples-distinct-element-1.pvl
Could not find field named length. |
class SetComp {
requires 0 <= j && j < 5;
void myMethod(int j) {
set<int> a = set<int> {SetComp.plus(x, x) | int x; x >= 0 && x <= 5 };
assert plus(1, 1) in a;
assert plus(j, j) in a;
}
pure static int plus(int a, int b) = a+b;
} This example from the tutorial. Set comprehension is on the website, but we do not support this anymore? Also the example does not verify on the website? So maybe remove it?
All other examples on the website do not seem to be working as well. Although they mostly run fine on latest dev. |
I did add a note a couple of months ago that we don't support set comprehensions at the moment, but the change seems to have not appeared on the website, not sure why. |
Ah yes it is there! I just missed it |
This code from the website does not pass anymore
It gives
So probably ambigous mult, or type coercion is not working as expected anymore.
The text was updated successfully, but these errors were encountered: