Skip to content

Commit 94c670d

Browse files
committed
Add mkey to pts_to instead.
1 parent 009c0b5 commit 94c670d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/pulse/lib/Pulse.Lib.Reference.fsti

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ val null #a : ref a
3131

3232
val is_null #a (r : ref a) : b:bool{b <==> r == null #a}
3333

34-
val pts_to_uninit (#a: Type u#a) ([@@@mkey]r: ref a) : slprop
35-
val pts_to (#a:Type u#a) ([@@@mkey]r:ref a) (#[T.exact (`1.0R)] p:perm) (n:a) : slprop
34+
val pts_to_uninit (#[@@@mkey]a: Type u#a) ([@@@mkey]r: ref a) : slprop
35+
val pts_to (#[@@@mkey]a:Type u#a) ([@@@mkey]r:ref a) (#[T.exact (`1.0R)] p:perm) (n:a) : slprop
3636

3737
instance val is_send_pts_to #a r #p n : is_send (pts_to #a r #p n)
3838
instance val is_send_pts_to_uninit #a r : is_send (pts_to_uninit #a r)

src/checker/Pulse.Checker.Prover.fst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -754,10 +754,7 @@ let is_mkey (t:R.term) : bool =
754754
| _ -> false
755755

756756
let binder_is_mkey (b:R.binder) : bool =
757-
if List.Tot.existsb is_mkey (R.inspect_binder b).attrs then true else
758-
// Treat type arguments as mkeys, as F* will happily unify terms of different types.
759-
if R.Tv_Type? (R.inspect_ln (R.inspect_binder b).sort) then true else
760-
false
757+
List.Tot.existsb is_mkey (R.inspect_binder b).attrs
761758

762759
let binder_is_pred (b:R.binder) : option nat =
763760
let doms, c = R.collect_arr_ln (R.inspect_binder b).sort in

0 commit comments

Comments
 (0)