diff options
author | Son HO | 2024-06-11 14:36:40 +0200 |
---|---|---|
committer | GitHub | 2024-06-11 14:36:40 +0200 |
commit | e60d525fe3dffa035d2a551af624747dca6e1c1e (patch) | |
tree | d7b06e270fd6a1cf69717f98db7c30e43788dad1 /compiler/Config.ml | |
parent | 73e27b142b65ec37fbbc55a5a7d0299555b2b60b (diff) | |
parent | 2e91b90e332c473253c2ff91fd65da34eb709572 (diff) |
Merge pull request #237 from AeneasVerif/son/tuples
Do not use tuple projectors in the Lean backend
Diffstat (limited to '')
-rw-r--r-- | compiler/Config.ml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler/Config.ml b/compiler/Config.ml index cb2c86ad..584635bc 100644 --- a/compiler/Config.ml +++ b/compiler/Config.ml @@ -362,16 +362,19 @@ let variant_concatenate_type_name = ref true ex.: {[ // Rust - struct Foo(u32) + struct Foo(u32, u32) // OCaml - type Foo = (u32) + type Foo = u32 * u32 ]} *) let use_tuple_structs = ref true -let backend_has_tuple_projectors () = - match backend () with Lean -> true | Coq | FStar | HOL4 -> false +let backend_has_tuple_projectors backend = + match backend with Lean -> true | Coq | FStar | HOL4 -> false + +(** Toggle the use of tuple projectors *) +let use_tuple_projectors = ref false (** We we use nested projectors for tuple (like: [(0, 1).snd.fst]) or do we use better projector syntax? *) |