summaryrefslogtreecommitdiff
path: root/compiler/Cps.ml
diff options
context:
space:
mode:
authorSon HO2024-06-04 14:05:44 +0200
committerGitHub2024-06-04 14:05:44 +0200
commitafc4e62ce7a584da0bb0a7350533e321388be545 (patch)
tree89f3b6999e1697595f1c3fbb2d9c4d8c60a69e49 /compiler/Cps.ml
parent4a31acdff7a5dfdc26bf25ad25bb8266b790f891 (diff)
parent3ad6c4712fd41efec55f29af5ccc31f68a0e12cf (diff)
Merge pull request #228 from AeneasVerif/son/loops2
Add support for projection markers when joining environments
Diffstat (limited to 'compiler/Cps.ml')
-rw-r--r--compiler/Cps.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/Cps.ml b/compiler/Cps.ml
index 142c2b08..f7694ba2 100644
--- a/compiler/Cps.ml
+++ b/compiler/Cps.ml
@@ -106,6 +106,12 @@ let cc_singleton file line span cf el =
| Some _ -> internal_error file line span
| _ -> None
+let cf_singleton file line span el =
+ match el with
+ | Some [ e ] -> Some e
+ | Some _ -> internal_error file line span
+ | _ -> None
+
(** It happens that we need to concatenate lists of results, for
instance when evaluating the branches of a match. When applying
the continuations to build the symbolic expressions, we need