From 3b57619bd5dc164dcb51ad4fb390efd258940917 Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 4 Oct 2009 10:50:39 +0000 Subject: Changed the way to support compatibility with previous versions. Compatibility version is now a global parameter that every feature can individually browse. This avoids having to keep the names of options synchronous in their respective files and in now-removed file coqcompat.ml. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12372 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tactics/tauto.ml4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tactics/tauto.ml4') diff --git a/tactics/tauto.ml4 b/tactics/tauto.ml4 index 6fea98377..60baa017c 100644 --- a/tactics/tauto.ml4 +++ b/tactics/tauto.ml4 @@ -49,6 +49,8 @@ let strict_unit = false (* Whether inner iff are unfolded *) let iff_unfolding = ref false +let unfold_iff () = !iff_unfolding || Flags.version_less_or_equal Flags.V8_2 + open Goptions let _ = declare_bool_option @@ -256,7 +258,7 @@ let rec tauto_intuit t_reduce solver ist = ) >> let reduction_not _ist = - if !iff_unfolding then + if unfold_iff () then <:tactic< unfold Coq.Init.Logic.not, Coq.Init.Logic.iff in * >> else <:tactic< unfold Coq.Init.Logic.not in * >> -- cgit v1.2.3