aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorYves Bertot2016-10-24 08:48:05 +0200
committerMaxime Dénès2016-10-25 09:39:16 +0200
commita7996005f57c12ba8fbb22c61ad97ac872da9d83 (patch)
tree1d2d479a31417cf4c4bf07552061f85dda89c029 /plugins
parent46462c3cc69e97bf3260f1aad5faaa6eaf6c2722 (diff)
That Function is unable to create a Fixpoint equation is a user problem,
not an anomaly
Diffstat (limited to 'plugins')
-rw-r--r--plugins/funind/recdef.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/funind/recdef.ml b/plugins/funind/recdef.ml
index 62f3071151..fa84e4ddf3 100644
--- a/plugins/funind/recdef.ml
+++ b/plugins/funind/recdef.ml
@@ -1538,7 +1538,9 @@ let recursive_definition is_mes function_name rec_impls type_of_f r rec_arg_num
begin
if do_observe ()
then Feedback.msg_debug (str "Cannot create equation Lemma " ++ CErrors.print e)
- else anomaly (Pp.str "Cannot create equation Lemma")
+ else CErrors.errorlabstrm "Cannot create equation Lemma"
+ (str "Cannot create equation lemma." ++ spc () ++
+ str "This may be because the function is nested-recursive.")
;
true
end