aboutsummaryrefslogtreecommitdiff
path: root/src/Reflection
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2016-09-21 16:49:11 -0400
committerGravatar Jason Gross <jgross@mit.edu>2016-09-21 16:49:11 -0400
commit160851bd5b1cf2b9f56710eb84e3ded20c834be7 (patch)
tree4c3cbfb92299d3d14b9134ffba90114d066dff63 /src/Reflection
parentb60c2d2e2f4e8f2940e01a9857fecce93d6b3592 (diff)
Deduplicate code
Diffstat (limited to 'src/Reflection')
-rw-r--r--src/Reflection/FilterLive.v7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/Reflection/FilterLive.v b/src/Reflection/FilterLive.v
index a16ff19e3..6bac795de 100644
--- a/src/Reflection/FilterLive.v
+++ b/src/Reflection/FilterLive.v
@@ -1,6 +1,7 @@
(** * Computes a list of live variables *)
Require Import Crypto.Reflection.Syntax.
Require Import Crypto.Reflection.Named.NameUtil.
+Require Import Crypto.Reflection.CountLets.
Require Import Crypto.Util.ListUtil.
Local Notation eta x := (fst x, snd x).
@@ -35,12 +36,6 @@ Section language.
| nil, ls2 => ls2
end.
- Fixpoint count_pairs (t : flat_type) : nat
- := match t with
- | Syntax.Tbase _ => 1
- | Prod A B => count_pairs A + count_pairs B
- end%nat.
-
Definition names_to_list {t} : interp_flat_type_gen (fun _ => Name) t -> list Name
:= smart_interp_flat_map base_type_code (g:=fun _ => list Name) (fun _ x => x :: nil)%list (fun _ _ x y => x ++ y)%list.