Author: Clément CHAPOT
Description: Linked list verified using Verus
- the
View
(abstract representation) of aLinkedList
is aSeq
linked_list_iter.rs
provides an example of how to implement an iterator using Verussrc/main.rs
contains an example of what can be verified using Verus on the linked list and its iterator- we only use two
assume
statements (axioms) to tell Verus what is the correspondance between aNode
and itsView
Verify the crate using Verus:
verus src/main.rs
Run main.rs
using cargo:
cargo run