Skip to content

Commit

Permalink
also test UserUnion.union_field0
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Jul 12, 2023
1 parent 9292a30 commit d617656
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cbor/CBOR.SteelC.fst
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ let test (#s: Ghost.erased cbor_case) (p: C.ref cbor_case_td)
C.write ps 1729uL;
Cu.ununion_field p "cbor_case_int64" ps;
drop (Cu.has_union_field p "cbor_case_int64" _);
let ps = Cu.union_field0 p "cbor_case_int64" (C.scalar U64.t) in
C.write ps 42uL;
Cu.ununion_field p "cbor_case_int64" ps;
drop (Cu.has_union_field p "cbor_case_int64" _);
let s' = vpattern_replace (C.pts_to p) in
Cu.full_union cbor_case_union_def (Ghost.reveal s') "cbor_case_int64"; // FIXME: find a better pattern for that lemma
return _

0 comments on commit d617656

Please sign in to comment.