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
use vstd::prelude::*; verus! { spec const SPEC_BAR: int = 100; // works exec const BAR: u8 ensures BAR@ == SPEC_BAR { 100u8 } spec const SPEC_FOO: Seq<u8> = seq![1, 0, 0, 0]; // doesn't work exec const FOO: [u8; 4] ensures FOO@ == SPEC_FOO { [1, 0, 0, 0] } // works exec const FOO: [u8; 4] ensures FOO@ == SPEC_FOO { let foo: [u8; 4] = [1,0,0,0]; assert(foo@ == seq![1u8,0,0,0]); foo } }
Maybe it's fine to have this explicit assertion for arrarys...
Link to code
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Maybe it's fine to have this explicit assertion for arrarys...
Link to code
The text was updated successfully, but these errors were encountered: