-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream fstar core changes from cryspen-sandwich.
- Loading branch information
1 parent
3ca3bde
commit d1a7db4
Showing
20 changed files
with
195 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Alloc.Borrow | ||
|
||
type t_Cow t = t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Alloc.Boxed | ||
|
||
type t_Box t t_Global = t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Core.Borrow | ||
|
||
class t_Borrow (v_Self: Type0) (v_Borrowed: Type0) = { | ||
f__hax_placeholder:unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Core.Error | ||
|
||
open FStar.Mul | ||
|
||
class t_Error (v_Self: Type0) = { | ||
[@@@ FStar.Tactics.Typeclasses.no_method]_super_11603873402755071380:Core.Fmt.t_Debug v_Self; | ||
[@@@ FStar.Tactics.Typeclasses.no_method]_super_7348497752681407507:Core.Fmt.t_Display v_Self; | ||
|
||
f__hax_placeholder:unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
module Core.Iter.Traits.Collect | ||
|
||
class into_iterator self = { | ||
f_IntoIter: Type0; | ||
// f_Item: Type0; | ||
f_into_iter: self -> f_IntoIter; | ||
class into_iterator (v_Self: Type0) = { | ||
// f_Item:Type0; | ||
f_IntoIter:Type0; | ||
f_IntoIter_Iterator:Core.Iter.Traits.Iterator.t_Iterator f_IntoIter; | ||
f_into_iter_pre:v_Self -> bool; | ||
f_into_iter_post:v_Self -> f_IntoIter -> bool; | ||
f_into_iter:x0: v_Self | ||
-> Prims.Pure f_IntoIter (f_into_iter_pre x0) (fun result -> f_into_iter_post x0 result) | ||
} | ||
|
||
let t_IntoIterator = into_iterator | ||
|
||
unfold instance impl t {| Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = { | ||
unfold instance impl t {| iterator_t: Core.Iter.Traits.Iterator.iterator t |}: into_iterator t = { | ||
f_IntoIter = t; | ||
f_into_iter = id; | ||
f_IntoIter_Iterator = iterator_t; | ||
f_into_iter_pre = (fun (self: t) -> true); | ||
f_into_iter_post = (fun (self: t) (out: t) -> true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Core.Ops.Bit | ||
open FStar.Mul | ||
|
||
class t_Shr (v_Self: Type0) (v_Rhs: Type0) = { | ||
f_Output:Type0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Std.Collections.Hash.Map | ||
|
||
open Core | ||
open FStar.Mul | ||
|
||
type t_HashMap (v_K: Type0) (v_V: Type0) (v_S: Type0) = { | ||
f__hax_placeholder:unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Std.Hash.Random | ||
|
||
type t_RandomState = { | ||
dummy_random_state_field: unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module Std.Io.Error | ||
|
||
open Core | ||
open FStar.Mul | ||
|
||
type t_Error = { f__hax_placeholder:Prims.unit } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module Std.Io.Impls | ||
val placeholder: unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module Std.Io | ||
|
||
open Core | ||
open FStar.Mul | ||
|
||
class t_Read (v_Self: Type0) = { | ||
f_read_pre:v_Self -> t_Slice u8 -> bool; | ||
f_read_post:v_Self -> t_Slice u8 -> (v_Self & t_Slice u8 & Core.Result.t_Result usize Std.Io.Error.t_Error) | ||
-> bool; | ||
f_read:x0: v_Self -> x1: t_Slice u8 | ||
-> Prims.Pure (v_Self & t_Slice u8 & Core.Result.t_Result usize Std.Io.Error.t_Error) | ||
(f_read_pre x0 x1) | ||
(fun result -> f_read_post x0 x1 result) | ||
} | ||
|
||
class t_Write (v_Self: Type0) = { | ||
f_write_pre:v_Self -> t_Slice u8 -> bool; | ||
f_write_post:v_Self -> t_Slice u8 -> (v_Self & Core.Result.t_Result usize Std.Io.Error.t_Error) -> bool; | ||
f_write:x0: v_Self -> x1: t_Slice u8 | ||
-> Prims.Pure (v_Self & Core.Result.t_Result usize Std.Io.Error.t_Error) | ||
(f_write_pre x0 x1) | ||
(fun result -> f_write_post x0 x1 result); | ||
f_flush_pre:v_Self -> bool; | ||
f_flush_post:v_Self -> (v_Self & Core.Result.t_Result Prims.unit Std.Io.Error.t_Error) -> bool; | ||
f_flush:x0: v_Self | ||
-> Prims.Pure (v_Self & Core.Result.t_Result Prims.unit Std.Io.Error.t_Error) | ||
(f_flush_pre x0) | ||
(fun result -> f_flush_post x0 result) | ||
} |