Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemr committed Feb 17, 2024
1 parent 9150b51 commit 3c6ca0c
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 166 deletions.
27 changes: 19 additions & 8 deletions share/pulse/examples/by-example/PulseTutorial.Array.fst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ open Pulse.Lib.Array

module SZ = FStar.SizeT

[@@ Rust_generics_bounds [["Copy"]]]
```pulse //readi$
fn read_i (#t:Type) (arr:array t) (#p:perm) (#s:erased (Seq.seq t)) (i:SZ.t { SZ.v i < Seq.length s })
fn read_i
(#[@@@ Rust_generics_bounds ["Copy"]] t:Type)
(arr:array t)
(#p:perm)
(#s:erased (Seq.seq t))
(i:SZ.t { SZ.v i < Seq.length s })
requires pts_to arr #p s
returns x:t
ensures pts_to arr #p s ** pure (x == Seq.index s (SZ.v i))
Expand Down Expand Up @@ -57,10 +61,13 @@ module A = Pulse.Lib.Array
module R = Pulse.Lib.Reference
open FStar.SizeT

[@@ Rust_generics_bounds [["PartialEq"; "Copy"]]]
```pulse
//comparesigbegin$
fn compare (#t:eqtype) #p1 #p2 (a1 a2:A.array t) (l:SZ.t)
fn compare
(#[@@@ Rust_generics_bounds ["PartialEq"; "Copy"]] t:eqtype)
#p1 #p2
(a1 a2:A.array t)
(l:SZ.t)
requires (
A.pts_to a1 #p1 's1 **
A.pts_to a2 #p2 's2 **
Expand Down Expand Up @@ -108,9 +115,11 @@ fn compare (#t:eqtype) #p1 #p2 (a1 a2:A.array t) (l:SZ.t)
//compareimplend$
```

[@@ Rust_generics_bounds [["Copy"]]]
```pulse //copy$
fn copy #t (a1 a2:A.array t) (l:SZ.t)
fn copy
(#[@@@ Rust_generics_bounds ["Copy"]] t:Type0)
(a1 a2:A.array t)
(l:SZ.t)
requires (
A.pts_to a1 's1 **
A.pts_to a2 #p2 's2 **
Expand Down Expand Up @@ -147,10 +156,12 @@ fn copy #t (a1 a2:A.array t) (l:SZ.t)
}
```

[@@ Rust_generics_bounds [["Copy"]]]
```pulse
//copy2sigbegin$
fn copy2 #t (a1 a2:A.array t) (l:SZ.t)
fn copy2
(#[@@@ Rust_generics_bounds ["Copy"]] t:Type0)
(a1 a2:A.array t)
(l:SZ.t)
requires (
A.pts_to a1 's1 **
A.pts_to a2 #p2 's2 **
Expand Down
1 change: 1 addition & 0 deletions src/checker/Pulse.Checker.Abs.fst
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ let open_ascription (c:comp_ascription) (nv:nvar) : comp_ascription =
let close_ascription (c:comp_ascription) (nv:nvar) : comp_ascription =
subst_ascription c [ND (snd nv) 0]

#push-options "--z3rlimit_factor 4"
let rec check_abs_core
(g:env)
(t:st_term{Tm_Abs? t.term})
Expand Down
Loading

0 comments on commit 3c6ca0c

Please sign in to comment.