From a1bdaf0635b5d5b9e007662f324dd526ba0fe8d3 Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Tue, 9 Oct 2018 18:21:04 +0200 Subject: [checker] Refactor by sharing code with the kernel For historical reasons, the checker was duplicating a lot of code of the kernel. The main differences I found were bug fixes that had not been backported. With this patch, the checker uses the kernel as a library to serve the same purpose as before: validation of a `.vo` file, re-typechecking all definitions a posteriori. We also rename some files from the checker so that they don't clash with kernel files. --- checker/safe_checking.mli | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 checker/safe_checking.mli (limited to 'checker/safe_checking.mli') diff --git a/checker/safe_checking.mli b/checker/safe_checking.mli new file mode 100644 index 0000000000..75b1eab429 --- /dev/null +++ b/checker/safe_checking.mli @@ -0,0 +1,16 @@ +(************************************************************************) +(* * The Coq Proof Assistant / The Coq Development Team *) +(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *) +(* Univ.ContextSet.t -> vodigest -> unit +val unsafe_import : compiled_library -> Univ.ContextSet.t -> vodigest -> unit -- cgit v1.2.3 From 4b391bd039e93124e2b919161fbcfc495119c77a Mon Sep 17 00:00:00 2001 From: Maxime Dénès Date: Wed, 31 Oct 2018 19:10:50 +0100 Subject: Checker now disables VM and native At the same time, we made the safe_env threading explicit. --- checker/safe_checking.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checker/safe_checking.mli') diff --git a/checker/safe_checking.mli b/checker/safe_checking.mli index 75b1eab429..44cd2b3a2e 100644 --- a/checker/safe_checking.mli +++ b/checker/safe_checking.mli @@ -12,5 +12,5 @@ open Safe_typing (*i*) -val import : compiled_library -> Univ.ContextSet.t -> vodigest -> unit -val unsafe_import : compiled_library -> Univ.ContextSet.t -> vodigest -> unit +val import : safe_environment -> compiled_library -> Univ.ContextSet.t -> vodigest -> safe_environment +val unsafe_import : safe_environment -> compiled_library -> Univ.ContextSet.t -> vodigest -> safe_environment -- cgit v1.2.3