Skip to content

Commit

Permalink
Revert into_iter changes to fix chacha20.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebuyse committed Nov 27, 2024
1 parent 737aa3f commit c49e5f0
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions proof-libs/fstar/core/Core.Iter.Traits.Collect.fst
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
module Core.Iter.Traits.Collect

class into_iterator (v_Self: Type0) = {
// f_Item:Type0;
f_IntoIter:Type0;
f_IntoIter_Iterator:Core.Iter.Traits.Iterator.t_Iterator f_IntoIter;
f_into_iter_pre:v_Self -> bool;
f_into_iter_post:v_Self -> f_IntoIter -> bool;
f_into_iter:x0: v_Self
-> Prims.Pure f_IntoIter (f_into_iter_pre x0) (fun result -> f_into_iter_post x0 result)
class into_iterator self = {
f_IntoIter: Type0;
// f_Item: Type0;
f_into_iter: self -> f_IntoIter;
}

let t_IntoIterator = into_iterator

unfold instance impl t {| iterator_t: Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = {
unfold instance impl t {| Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = {
f_IntoIter = t;
f_into_iter = id;
f_IntoIter_Iterator = iterator_t;
f_into_iter_pre = (fun (self: t) -> true);
f_into_iter_post = (fun (self: t) (out: t) -> true)
}

0 comments on commit c49e5f0

Please sign in to comment.