aboutsummaryrefslogtreecommitdiff
path: root/plugins/extraction/extract_env.ml
diff options
context:
space:
mode:
authorletouzey2011-03-07 15:37:59 +0000
committerletouzey2011-03-07 15:37:59 +0000
commit0a2738fe2e171cc6661824cd6525ee5d5c317334 (patch)
tree41c4eaff941fa572f46236197e087037cb0c158e /plugins/extraction/extract_env.ml
parent654f4e0f4dfae3073f8af5ccf54636f927191276 (diff)
Extraction: a warning when an opaque constant is enterred
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13891 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/extract_env.ml')
-rw-r--r--plugins/extraction/extract_env.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/extraction/extract_env.ml b/plugins/extraction/extract_env.ml
index cb873f2e52..04d1f2a8de 100644
--- a/plugins/extraction/extract_env.ml
+++ b/plugins/extraction/extract_env.ml
@@ -513,6 +513,7 @@ let full_extr f (refs,mps) =
init false false;
List.iter (fun mp -> if is_modfile mp then error_MPfile_as_mod mp true) mps;
let struc = optimize_struct (refs,mps) (mono_environment refs mps) in
+ warning_opaques ();
warning_axioms ();
print_structure_to_file (mono_filename f) false struc;
reset ()
@@ -526,6 +527,7 @@ let separate_extraction lr =
init true false;
let refs,mps = locate_ref lr in
let struc = optimize_struct (refs,mps) (mono_environment refs mps) in
+ warning_opaques ();
warning_axioms ();
let print = function
| (MPfile dir as mp, sel) as e ->
@@ -544,6 +546,7 @@ let simple_extraction r = match locate_ref [r] with
init false false;
let struc = optimize_struct ([r],[]) (mono_environment [r] []) in
let d = get_decl_in_structure r struc in
+ warning_opaques ();
warning_axioms ();
if is_custom r then msgnl (str "(** User defined extraction *)");
print_one_decl struc (modpath_of_r r) d;
@@ -570,6 +573,7 @@ let extraction_library is_rec m =
in
let struc = List.fold_left select [] l in
let struc = optimize_struct ([],[]) struc in
+ warning_opaques ();
warning_axioms ();
let print = function
| (MPfile dir as mp, sel) as e ->