Skip to content

Commit

Permalink
remove one sladmit
Browse files Browse the repository at this point in the history
remaining ones:
- src/SlabsCommon2.fst: p_quarantine_{pack,unpack}
- src/SlabsCommon2.fsti: elim_slab_vprop
- src/SlabsAlloc2.fst: next one
- src/SlabsFree2.fst: next one + add FatalError wrapper
- src/Main.fst: x6
  • Loading branch information
Antonin Reitz committed Jul 16, 2024
1 parent d912a7f commit c21ffa7
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions src/SlabsCommon2.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -511,25 +511,30 @@ let deallocate_slot (size_class: sc_ex)
= elim_slab_vprop size_class arr md in
let b = A.index md 0sz in
//assert (b);
let md_as_seq' : G.erased (Seq.lseq bool 1)
= G.hide (Seq.upd (G.reveal md_as_seq) 0 (not b)) in
A.upd md 0sz false;
sladmit ();
//let md_as_seq' : G.erased (Seq.lseq bool 1)
// = G.hide (Seq.upd (G.reveal md_as_seq) 0 false) in
//rewrite_slprop
// (slab_vprop_aux size_class
// (A.split_l arr (u32_to_sz size_class))
// (Seq.index md_as_seq 0))
// (slab_vprop_aux size_class
// (A.split_l arr (u32_to_sz size_class))
// (Seq.index md_as_seq' 0) `star`
// A.varray (A.split_l arr (u32_to_sz size_class))
// )
// (fun _ -> admit ());
//intro_slab_vprop size_class arr md md_as_seq';
//let ptr = A.split_l arr (u32_to_sz size_class) in
A.ptr_base_offset_inj
(A.ptr_of ptr)
(A.ptr_of arr);
change_equal_slprop
(A.varray ptr)
(A.varray (A.split_l arr (u32_to_sz size_class)));
rewrite_slprop
(slab_vprop_aux size_class
(A.split_l arr (u32_to_sz size_class))
(Seq.index md_as_seq 0) `star`
A.varray (A.split_l arr (u32_to_sz size_class)))
(slab_vprop_aux size_class
(A.split_l arr (u32_to_sz size_class))
(Seq.index md_as_seq' 0)
)
(fun _ -> admit ());
intro_slab_vprop size_class arr md md_as_seq';
//[@inline_let] let b = true in
//change_equal_slprop
// (A.varray (A.split_l arr (u32_to_sz size_class)))
// (A.varray ptr);
// emp
// (if b then emp else A.varray ptr);
return true

#push-options "--z3rlimit 30"
Expand Down

0 comments on commit c21ffa7

Please sign in to comment.