summaryrefslogtreecommitdiff
path: root/src/InterpreterUtils.ml
diff options
context:
space:
mode:
authorSon Ho2022-01-25 21:22:00 +0100
committerSon Ho2022-01-25 21:22:00 +0100
commit761101986fad090b913001f3080026cbf249e58a (patch)
treebe8e9f087f3ca72c99b669fbf9c366e5e948f62d /src/InterpreterUtils.ml
parent123049c07030f0945772a1114c5846f45b2c8e78 (diff)
Add a SynthInputGivenBack case in Values.sv_kind
Diffstat (limited to 'src/InterpreterUtils.ml')
-rw-r--r--src/InterpreterUtils.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/InterpreterUtils.ml b/src/InterpreterUtils.ml
index 157ac68d..20657945 100644
--- a/src/InterpreterUtils.ml
+++ b/src/InterpreterUtils.ml
@@ -237,8 +237,9 @@ let value_has_ret_symbolic_value_with_borrow_under_mut (ctx : C.eval_ctx)
if ty_has_borrow_under_mut ctx.type_context.type_infos s.sv_ty then
raise Found
else ()
- | V.SynthInput -> ()
- | V.FunCallGivenBack | V.SynthRetGivenBack -> failwith "Unreachable"
+ | V.SynthInput | V.SynthInputGivenBack | V.FunCallGivenBack
+ | V.SynthRetGivenBack ->
+ ()
end
in
(* We use exceptions *)