From 00191b7dea128e21abcde02cc45b02d23c205595 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Sat, 17 Feb 2018 23:57:47 +0100 Subject: Add an invariant on given up goals in class_tactics. --- tactics/class_tactics.ml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tactics') diff --git a/tactics/class_tactics.ml b/tactics/class_tactics.ml index 031f0bc0e..0260460e6 100644 --- a/tactics/class_tactics.ml +++ b/tactics/class_tactics.ml @@ -973,6 +973,8 @@ module Search = struct let (), pv', (unsafe, shelved, gaveup), _ = Proofview.apply env tac pv in + if not (List.is_empty gaveup) then + CErrors.anomaly (Pp.str "run_on_evars not assumed to apply tactics generating given up goals."); if Proofview.finished pv' then let evm' = Proofview.return pv' in assert(Evd.fold_undefined (fun ev _ acc -> -- cgit v1.2.3