summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2019-04-25 17:13:44 +0100
committerBrian Campbell2019-04-25 17:13:44 +0100
commit8ce42bfda56863c2caac91155b3e92a7b722862a (patch)
treef14d69172a4897e3452eae9239e61c8e7b2d5091 /src
parent911153ffefdfb090557c6dfcc5a5143419c34f56 (diff)
Fill in missing map_..._annot case
Diffstat (limited to 'src')
-rw-r--r--src/ast_util.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast_util.ml b/src/ast_util.ml
index b0a11c70..33af1be7 100644
--- a/src/ast_util.ml
+++ b/src/ast_util.ml
@@ -691,12 +691,16 @@ and map_def_annot f = function
| DEF_default ds -> DEF_default ds
| DEF_scattered sd -> DEF_scattered (map_scattered_annot f sd)
| DEF_measure (id, pat, exp) -> DEF_measure (id, map_pat_annot f pat, map_exp_annot f exp)
+ | DEF_loop_measures (id, measures) -> DEF_loop_measures (id, List.map (map_loop_measure_annot f) measures)
| DEF_reg_dec ds -> DEF_reg_dec (map_decspec_annot f ds)
| DEF_internal_mutrec fds -> DEF_internal_mutrec (List.map (map_fundef_annot f) fds)
| DEF_pragma (name, arg, l) -> DEF_pragma (name, arg, l)
and map_defs_annot f = function
| Defs defs -> Defs (List.map (map_def_annot f) defs)
+and map_loop_measure_annot f = function
+ | Loop (loop, exp) -> Loop (loop, map_exp_annot f exp)
+
let id_loc = function
| Id_aux (_, l) -> l