diff options
author | Son Ho | 2023-03-07 09:42:43 +0100 |
---|---|---|
committer | Son HO | 2023-06-04 21:44:33 +0200 |
commit | 1d33206096d019d4593fd11e4257b0d786666d87 (patch) | |
tree | c92968069dc08c3d138e5bb2ab16154d8cceff60 /compiler/Config.ml | |
parent | db8cca3c3177fec2e66634366a6621ca979c0dc9 (diff) |
Consistently use the names TerminationMeasure and DecreasesProof
Diffstat (limited to '')
-rw-r--r-- | compiler/Config.ml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/compiler/Config.ml b/compiler/Config.ml index 1c3d14ff..1baed7fa 100644 --- a/compiler/Config.ml +++ b/compiler/Config.ml @@ -9,7 +9,11 @@ let backend_names = [ "fstar"; "coq"; "lean" ] (** Utility to compute the backend from an input parameter *) let backend_of_string (b : string) : backend option = - match b with "fstar" -> Some FStar | "coq" -> Some Coq | "lean" -> Some Lean | _ -> None + match b with + | "fstar" -> Some FStar + | "coq" -> Some Coq + | "lean" -> Some Lean + | _ -> None let opt_backend : backend option ref = ref None @@ -174,16 +178,21 @@ let test_unit_functions = ref false *) let test_trans_unit_functions = ref false -(** If [true], insert [decreases] clauses for all the recursive definitions. +(** If [true], use decreases clauses/termination measures for all the recursive definitions. - The body of such clauses must be defined by the user. + More precisely: + - for F*, we generate definitions which use decreases clauses + - for Lean, we generate definitions which use termination measures and + decreases proofs + + The body of such clauses/proofs must be defined by the user. *) let extract_decreases_clauses = ref false -(** In order to help the user, we can generate "template" decrease clauses - (i.e., definitions with proper signatures but dummy bodies) in a - dedicated file. - *) +(** In order to help the user, we can generate "template" decrease clauses/ termination + measures (i.e., definitions with proper signatures but dummy bodies) in a dedicated + file. +*) let extract_template_decreases_clauses = ref false (** {1 Micro passes} *) |