diff options
author | Son Ho | 2022-12-14 18:25:49 +0100 |
---|---|---|
committer | Son HO | 2023-02-03 11:21:46 +0100 |
commit | 20332f3faa5e1205602c946f1c7abb9b6660e6f0 (patch) | |
tree | 4ac5f36f0487a53f6461885fd25c70c06b6f656c /compiler/InterpreterLoops.ml | |
parent | 1a912cbf23c31c95041526c71bbd050bb5ac4e7c (diff) |
Add a `Loop` node in the pure AST
Diffstat (limited to '')
-rw-r--r-- | compiler/InterpreterLoops.ml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/InterpreterLoops.ml b/compiler/InterpreterLoops.ml index 48292968..29e68ca0 100644 --- a/compiler/InterpreterLoops.ml +++ b/compiler/InterpreterLoops.ml @@ -3061,12 +3061,8 @@ let match_ctx_with_target (config : C.config) (loop_id : V.LoopId.id) in let cc = InterpreterBorrows.end_borrows config new_borrows in - (* List the loop input values - when iterating over a map, we iterate - over the keys, in increasing order *) - let input_values = - List.map snd - (V.SymbolicValueId.Map.bindings tgt_to_src_maps.sid_to_value_map) - in + (* Compute the loop input values *) + let input_values = tgt_to_src_maps.sid_to_value_map in (* Continue *) cc |