summaryrefslogtreecommitdiff
path: root/src/SymbolicToPure.ml
diff options
context:
space:
mode:
authorSon Ho2022-02-24 00:03:39 +0100
committerSon Ho2022-02-24 00:03:39 +0100
commit27732e406720422313579b7d3a97977463183b89 (patch)
treebb97349fc6746a23a8a0be7b38adad235056ee9d /src/SymbolicToPure.ml
parent532b43ad73a4964cd75d8548d43eb894b7f225c1 (diff)
Finish writing the code which generates the state-error monad
Diffstat (limited to 'src/SymbolicToPure.ml')
-rw-r--r--src/SymbolicToPure.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SymbolicToPure.ml b/src/SymbolicToPure.ml
index f2ed1053..5709ce23 100644
--- a/src/SymbolicToPure.ml
+++ b/src/SymbolicToPure.ml
@@ -972,6 +972,9 @@ and translate_return (_config : config) (opt_v : V.typed_value option)
(* Forward function *)
let v = Option.get opt_v in
let v = typed_value_to_rvalue ctx v in
+ (* TODO: we need to use a `return` function (otherwise we have problems
+ * with the state-error monad). We also need to update the type when using
+ * a state-error monad. *)
let v = mk_result_return_rvalue v in
let e = Value (v, None) in
let ty = v.ty in