summaryrefslogtreecommitdiff
path: root/compiler/Pure.ml
diff options
context:
space:
mode:
authorSon HO2024-03-20 06:48:08 +0100
committerGitHub2024-03-20 06:48:08 +0100
commit0d52c3fe35d0b24de729bdfb917ad6c7104d0c6e (patch)
tree7748d3c19a0993edc710690491a2dc6ea3a2b58f /compiler/Pure.ml
parent8111c970fcae9d609961eba2ad6716e8c9fc1046 (diff)
parent34850eed3c66f7f2c432294e4c589be53ad5d37b (diff)
Merge pull request #93 from AeneasVerif/son/examples
Add some examples and improve the shape of the generated code
Diffstat (limited to 'compiler/Pure.ml')
-rw-r--r--compiler/Pure.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/Pure.ml b/compiler/Pure.ml
index cf6710aa..7de7e0f4 100644
--- a/compiler/Pure.ml
+++ b/compiler/Pure.ml
@@ -807,12 +807,18 @@ and emeta =
The mvalue stores the value which is put in the destination
The second (optional) mplace stores the origin.
*)
- | SymbolicAssignment of (var_id[@opaque]) * mvalue
+ | SymbolicAssignments of ((var_id[@opaque]) * mvalue) list
(** Informationg linking a variable (from the pure AST) to an
expression.
We use this to guide the heuristics which derive pretty names.
*)
+ | SymbolicPlaces of ((var_id[@opaque]) * string) list
+ (** Informationg linking a variable (from the pure AST) to a name.
+
+ We generate this information by exploring the context, and use it
+ to derive pretty names.
+ *)
| MPlace of mplace (** Meta-information about the origin of a value *)
| Tag of string (** A tag - typically used for debugging *)
[@@deriving