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
CN supports using the same name for both structs and datatypes, but in testing mode we get confused between the two. Here's an example:
struct List { int value; struct List* next; }; /*@ datatype List { Nil {}, Cons { i32 head, List tail } } predicate List ListSegment(pointer from, pointer to) { if (is_null(from)) { assert(is_null(to)); return Nil {}; } else { take head = Owned<struct List>(from); take tail = ListSegment(head.next, to); return Cons { head: head.value, tail: tail }; } } @*/
The text was updated successfully, but these errors were encountered:
Moved to main repo as rems-project#706
Sorry, something went wrong.
No branches or pull requests
CN supports using the same name for both structs and datatypes, but in testing mode we get confused between the two.
Here's an example:
The text was updated successfully, but these errors were encountered: