@@ -216,10 +216,9 @@ pub(super) fn lock_range<'rcu>(
216216 )
217217}
218218
219- pub fn unlock_range(
220- cursor: & mut Cursor <' _>,
221- m: Tracked <LockProtocolModel >
222- ) -> ( res: Tracked <LockProtocolModel >)
219+ pub fn unlock_range( cursor: & mut Cursor <' _>, m: Tracked <LockProtocolModel >) -> ( res: Tracked <
220+ LockProtocolModel ,
221+ >)
223222 requires
224223 old( cursor) . wf( ) ,
225224 m@. inv( ) ,
@@ -487,9 +486,11 @@ fn dfs_acquire_lock(
487486 cur_node: & PageTableGuard <' _>,
488487 // cur_node_va: Vaddr,
489488 // va_range: Range<Vaddr>,
490- m: Tracked <LockProtocolModel >,
489+ m: Tracked <
490+ LockProtocolModel ,
491+ >,
491492 // forgot_guards: Tracked<SubTreeForgotGuard>,
492- // ) -> (res: (Tracked<LockProtocolModel>, Tracked<SubTreeForgotGuard>))
493+ // ) -> (res: (Tracked<LockProtocolModel>, Tracked<SubTreeForgotGuard>))
493494) -> ( res: Tracked <LockProtocolModel >)
494495 requires
495496 cur_node. wf( ) ,
@@ -501,11 +502,12 @@ fn dfs_acquire_lock(
501502 m@. cur_node( ) == cur_node. nid( ) + 1 ,
502503 m@. node_is_locked( cur_node. nid( ) ) ,
503504 ensures
504- // res.0@.inv(),
505- // res.0@.inst_id() == cur_node.inst_id(),
506- // res.0@.state() is Locking,
507- // res.0@.sub_tree_rt() == m@.sub_tree_rt(),
508- // res.0@.cur_node() == NodeHelper::next_outside_subtree(cur_node.nid()),
505+ // res.0@.inv(),
506+ // res.0@.inst_id() == cur_node.inst_id(),
507+ // res.0@.state() is Locking,
508+ // res.0@.sub_tree_rt() == m@.sub_tree_rt(),
509+ // res.0@.cur_node() == NodeHelper::next_outside_subtree(cur_node.nid()),
510+
509511 res@. inv( ) ,
510512 res@. inst_id( ) == cur_node. inst_id( ) ,
511513 res@. state( ) is Locking ,
@@ -514,7 +516,6 @@ fn dfs_acquire_lock(
514516 decreases cur_node. deref( ) . deref( ) . level_spec( ) ,
515517{
516518 broadcast use crate :: spec:: utils:: group_node_helper_lemmas;
517-
518519 // let tracked mut forgot_guards = forgot_guards.get();
519520
520521 let cur_level = cur_node. deref( ) . deref( ) . level( ) ;
0 commit comments