| 1 |
From Coq Require Import List. |
| 2 |
From Coq Require Import String. |
| 3 |
Require Import Crypto.CLI. |
| 4 |
Require Export Crypto.StandaloneJsOfOCamlMain. |
| 5 |
Require Import Crypto.Bedrock.Field.Stringification.Stringification. |
| 6 |
Import ListNotations. |
| 7 |
Local Open Scope string_scope. |
| 8 |
Local Open Scope list_scope. |
| 9 |
|
| 10 |
(** Needed to work around COQBUG(https://github.com/coq/coq/issues/4875) *) |
| 11 |
Extraction Inline coqutil.Map.SortedListString.map. |
| 12 |
|
| 13 |
Module Bedrock2First. |
| 14 |
(** N.B. We put bedrock2 first so that the default for these binaries |
| 15 |
is bedrock2 *) |
| 16 |
Local Instance bedrock2_supported_languages : ForExtraction.supported_languagesT |
| 17 |
:= [("bedrock2", OutputBedrock2API)] |
| 18 |
++ ForExtraction.default_supported_languages. |
| 19 |
|
| 20 |
Module FiatCrypto. |
| 21 |
Definition main : unit |
| 22 |
:= main_gen ForExtraction.FiatCrypto.PipelineMain. |
| 23 |
End FiatCrypto. |
| 24 |
End Bedrock2First. |
| 25 |
|
| 26 |
Module Bedrock2Later. |
| 27 |
Local Instance bedrock2_supported_languages : ForExtraction.supported_languagesT |
| 28 |
:= let bedrock2 := ("bedrock2", OutputBedrock2API) in |
| 29 |
match ForExtraction.default_supported_languages with |
| 30 |
| l :: ls => l :: bedrock2 :: ls |
| 31 |
| ls => bedrock2 :: ls |
| 32 |
end. |
| 33 |
|
| 34 |
Module FiatCrypto. |
| 35 |
Definition main : unit |
| 36 |
:= main_gen ForExtraction.FiatCrypto.PipelineMain. |
| 37 |
End FiatCrypto. |
| 38 |
End Bedrock2Later. |