-
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.
Library implementation needed for coverage
- Loading branch information
Showing
5 changed files
with
137 additions
and
92 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
52 changes: 52 additions & 0 deletions
52
proof-libs/coq/coq/generated-core/phase_library/NumberNotation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
(* File automatically generated by Hacspec *) | ||
From Coq Require Import ZArith. | ||
Require Import List. | ||
Import List.ListNotations. | ||
Open Scope Z_scope. | ||
Open Scope bool_scope. | ||
Require Import Ascii. | ||
Require Import String. | ||
Require Import Coq.Floats.Floats. | ||
From RecordUpdate Require Import RecordSet. | ||
Import RecordSetNotations. | ||
|
||
Require Import Core_Primitive. | ||
Export Core_Primitive. | ||
|
||
(* Handwritten *) | ||
|
||
Coercion Build_t_i8 : t_I8 >-> t_i8. | ||
Coercion Build_t_I8 : Z >-> t_I8. | ||
|
||
Coercion Build_t_i16 : t_I16 >-> t_i16. | ||
Coercion Build_t_I16 : Z >-> t_I16. | ||
|
||
Coercion Build_t_i32 : t_I32 >-> t_i32. | ||
Coercion Build_t_I32 : Z >-> t_I32. | ||
|
||
Coercion Build_t_i64 : t_I64 >-> t_i64. | ||
Coercion Build_t_I64 : Z >-> t_I64. | ||
|
||
Coercion Build_t_i128 : t_I128 >-> t_i128. | ||
Coercion Build_t_I128 : Z >-> t_I128. | ||
|
||
Coercion Build_t_isize : t_I64 >-> t_isize. | ||
|
||
Coercion Build_t_u8 : t_U8 >-> t_u8. | ||
Coercion Build_t_U8 : N >-> t_U8. | ||
|
||
Coercion Build_t_u16 : t_U16 >-> t_u16. | ||
Coercion Build_t_U16 : N >-> t_U16. | ||
|
||
Coercion Build_t_u32 : t_U32 >-> t_u32. | ||
Coercion Build_t_U32 : N >-> t_U32. | ||
|
||
Coercion Build_t_u64 : t_U64 >-> t_u64. | ||
Coercion Build_t_U64 : N >-> t_U64. | ||
|
||
Coercion Build_t_u128 : t_U128 >-> t_u128. | ||
Coercion Build_t_U128 : N >-> t_U128. | ||
|
||
Coercion Build_t_usize : t_U64 >-> t_usize. | ||
|
||
Coercion Z.to_N : Z >-> N. |
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,24 @@ | ||
(* File automatically generated by Hacspec *) | ||
From Coq Require Import ZArith. | ||
Require Import List. | ||
Import List.ListNotations. | ||
Open Scope Z_scope. | ||
Open Scope bool_scope. | ||
Require Import Ascii. | ||
Require Import String. | ||
Require Import Coq.Floats.Floats. | ||
From RecordUpdate Require Import RecordSet. | ||
Import RecordSetNotations. | ||
|
||
Require Import Core_Primitive. | ||
Export Core_Primitive. | ||
|
||
(* Array coercions *) | ||
Coercion Build_t_Array : t_Slice >-> t_Array. | ||
Coercion Build_t_Slice : list >-> t_Slice. | ||
|
||
Definition unsize {A} (x : A) := x. | ||
Definition repeat {v_T} (a : v_T) b : t_Array v_T b := List.repeat a (N.to_nat (U64_f_v (usize_0 b))). | ||
|
||
Definition t_String := string. | ||
Definition ToString_f_to_string (x : string) : string := x. |
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