From 60ed425ffc8bc30c11a3a8e542a9bfb0a0a06471 Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Mon, 23 Nov 2020 16:08:37 +0100 Subject: Fix comparison of extracted array literals Fixes #13453 which was a loop in ~~~ocaml let normalize a = let o = optims () in let rec norm a = let a' = if o.opt_kill_dum then kill_dummy (simpl o a) else simpl o a in if eq_ml_ast a a' then a else norm a' in norm a ~~~ the `eq_ml_ast` was always returning `false`. --- test-suite/bugs/closed/bug_13453.v | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test-suite/bugs/closed/bug_13453.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_13453.v b/test-suite/bugs/closed/bug_13453.v new file mode 100644 index 0000000000..4d0e435df7 --- /dev/null +++ b/test-suite/bugs/closed/bug_13453.v @@ -0,0 +1,6 @@ +Require Extraction. + +Primitive array := #array_type. + +Definition a : array nat := [| 0%nat | 0%nat |]. +Extraction a. -- cgit v1.2.3