diff options
author | Son Ho | 2022-01-29 20:30:16 +0100 |
---|---|---|
committer | Son Ho | 2022-01-29 20:30:16 +0100 |
commit | 79af7f999e3a41e3c5f9a30819a7cc43b5397c56 (patch) | |
tree | a3b047e0b72f8f493a2395bbf47fb434d9b73205 /src/PureToExtract.ml | |
parent | fe5d34965d44120e491fb2fa42262d8439ea38c7 (diff) |
Make the field names optional and make progress on ExtractToFStar
Diffstat (limited to '')
-rw-r--r-- | src/PureToExtract.ml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PureToExtract.ml b/src/PureToExtract.ml index f2c03b90..5313569a 100644 --- a/src/PureToExtract.ml +++ b/src/PureToExtract.ml @@ -35,10 +35,16 @@ type name_formatter = { char_name : string; int_name : integer_type -> string; str_name : string; - field_name : name -> string -> string; + field_name : name -> string option -> string; (** Inputs: - type name - field name + + Note that fields don't always have names, but we still need to + generate some names if we want to extract the structures to records... + We might want to extract such structures to tuples, later, but field + access then causes trouble because not all provers accept syntax like + `x.3` where `x` is a tuple. *) variant_name : name -> string -> string; (** Inputs: |