Skip to content

Commit b9ab81f

Browse files
committed
Format code
Signed-off-by: Yonghao Zou <zouyonghao@live.cn>
1 parent 5e415e1 commit b9ab81f

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

lock-protocol/src/mm/page_table/cursor/spec_helpers.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ pub open spec fn spt_do_not_change_except_modify_pte<C: PageTableConfig>(
4848
&&& spt.wf()
4949
&&& old_spt.wf()
5050
&&& spt.instance.id() == old_spt.instance.id()
51-
&&& spt.instance.root() == old_spt.instance.root()
52-
// &&& forward_spt_do_not_change_except(spt, old_spt, pte_addr) // not correct?
51+
&&& spt.instance.root()
52+
== old_spt.instance.root()// &&& forward_spt_do_not_change_except(spt, old_spt, pte_addr)
53+
// not correct?
5354
&&& forward_spt_do_not_change_except(old_spt, spt, pte_addr)
5455
}
5556

lock-protocol/src/mm/page_table/node/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ impl<C: PageTableConfig> PageTableNode<C> {
120120
res.0.start_paddr() % page_size_spec::<C>(level) == 0,
121121
// old model does not change
122122
forall|pa: Paddr| #[trigger]
123-
old(model).meta_map.contains_key(pa as int)
124-
<==> {
123+
old(model).meta_map.contains_key(pa as int) <==> {
125124
&&& #[trigger] model.meta_map.contains_key(pa as int)
126125
&&& res.0.start_paddr() != pa
127126
},
128-
forall |pa: Paddr| #[trigger]
129-
model.meta_map.contains_key(pa as int) && old(model).meta_map.contains_key(pa as int)
130-
==> {
127+
forall|pa: Paddr| #[trigger]
128+
model.meta_map.contains_key(pa as int) && old(model).meta_map.contains_key(
129+
pa as int,
130+
) ==> {
131131
&&& model.meta_map[pa as int] == old(model).meta_map[pa as int]
132132
},
133133
{

0 commit comments

Comments
 (0)