-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #574 from hacspec/bertie-core-additions
feat(proof-libs/fstar): add missing implementations for Bertie
- Loading branch information
Showing
13 changed files
with
79 additions
and
2 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,12 @@ | ||
module Alloc.Fmt | ||
open Rust_primitives | ||
|
||
include Core.Fmt | ||
|
||
val impl_2__new_v1 (pieces: t_Slice string) (args: Core.Fmt.Rt.t_Argument): t_Arguments | ||
val impl_7__write_fmt (fmt: t_Formatter) (args: t_Arguments): t_Result | ||
|
||
val format (args: t_Arguments): string | ||
|
||
|
||
|
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 Alloc.String | ||
|
||
type t_String = string | ||
|
||
|
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.Fmt.Rt | ||
|
||
val t_Argument: Type0 | ||
val impl_1__new_display (#t:Type0) (x: t): t_Argument | ||
val impl_1__new_debug (#t:Type0) (x: t): t_Argument |
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,3 +1,19 @@ | ||
module Core.Fmt | ||
open Rust_primitives | ||
|
||
val t_Error: Type0 | ||
|
||
type t_Result = Core.Result.t_Result unit t_Error | ||
|
||
val t_Formatter: Type0 | ||
class t_Display t_Self = { | ||
f_fmt_pre: t_Self -> Core.Fmt.t_Formatter -> bool; | ||
f_fmt_post: t_Self -> Core.Fmt.t_Formatter -> (Core.Fmt.t_Formatter & Core.Result.t_Result Prims.unit Core.Fmt.t_Error) -> bool; | ||
f_fmt: t_Self -> Core.Fmt.t_Formatter -> (Core.Fmt.t_Formatter & Core.Result.t_Result Prims.unit Core.Fmt.t_Error) | ||
} | ||
|
||
val t_Arguments: Type0 | ||
val impl_2__new_v1 (pieces: t_Slice string) (args: t_Slice Core.Fmt.Rt.t_Argument): t_Arguments | ||
val impl_7__write_fmt (fmt: t_Formatter) (args: t_Arguments): t_Formatter & t_Result | ||
val impl_2__new_const (args: t_Slice string): t_Arguments | ||
|
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 |
---|---|---|
|
@@ -4,5 +4,3 @@ include Rust_primitives | |
include Core.Num | ||
include Core.Iter | ||
include Core.Ops | ||
|
||
|
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,12 @@ | ||
module Rand_core | ||
open Rust_primitives | ||
|
||
class t_RngCore (t_Self: Type0) = { | ||
f_next_u32: t_Self -> t_Self & u32; | ||
f_next_u64: t_Self -> t_Self & u64; | ||
f_fill_bytes: t_Self -> t_Slice u8 -> t_Self & t_Slice u8 | ||
} | ||
|
||
class t_CryptoRng (t_Self: Type0) = { | ||
marker_trait: 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,4 @@ | ||
module Std.Io.Stdio | ||
|
||
val v__eprint: Core.Fmt.t_Arguments -> unit | ||
|
7 changes: 7 additions & 0 deletions
7
proof-libs/fstar/rust_primitives/Rust_primitives.Hax.Control_flow_monad.Mexception.fst
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,7 @@ | ||
module Rust_primitives.Hax.Control_flow_monad.Mexception | ||
open Core.Ops.Control_flow | ||
|
||
let run #a: t_ControlFlow a a -> a | ||
= function | ControlFlow_Continue v | ControlFlow_Break v -> v | ||
|
||
|
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