summaryrefslogtreecommitdiff
path: root/compiler/SymbolicToPure.ml
diff options
context:
space:
mode:
authorSon Ho2023-03-07 08:51:22 +0100
committerSon HO2023-06-04 21:44:33 +0200
commit73b95970460fb7d8c90e2ea97fa6457d7850af07 (patch)
tree6fca33592c9aa380280ba3095867743fde5d74c3 /compiler/SymbolicToPure.ml
parentfeb60683216a6d9193d6353605560c6c80a1ab41 (diff)
Add more checks in Driver.ml
Diffstat (limited to '')
-rw-r--r--compiler/SymbolicToPure.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/SymbolicToPure.ml b/compiler/SymbolicToPure.ml
index f357f33b..2c103177 100644
--- a/compiler/SymbolicToPure.ml
+++ b/compiler/SymbolicToPure.ml
@@ -2616,7 +2616,8 @@ let wrap_in_match_fuel (fuel0 : VarId.id) (fuel : VarId.id) (body : texpression)
let match_e = Switch (fuel0, Match [ fail_branch; success_branch ]) in
{ e = match_e; ty = match_ty }
| Lean ->
- failwith "Not handling fuel in Lean"
+ (* We should have checked the command line arguments before *)
+ raise (Failure "Unexpected")
let translate_fun_decl (ctx : bs_ctx) (body : S.expression option) : fun_decl =
(* Translate *)