Skip to content
Snippets Groups Projects
Unverified Commit fb60f696 authored by Lennard Gäher's avatar Lennard Gäher
Browse files

allow to admit proofs for performance reasons

parent 36c8bca2
No related branches found
No related tags found
No related merge requests found
......@@ -589,6 +589,7 @@ name = "radium"
version = "0.1.0"
dependencies = [
"log",
"rrconfig",
]
[[package]]
......
......@@ -7,3 +7,5 @@ edition = "2021"
[dependencies]
log = "0.4"
rrconfig = { path = "../rrconfig" }
......@@ -1123,7 +1123,12 @@ impl<'def> Function<'def> {
out.push_str(format!("{}Unshelve. all: try done; try apply: inhabitant; print_remaining_shelved_goal \"{}\".\n", indent, self.name()).as_str());
out.push_str("Qed.\n");
if rrconfig::admit_proofs() {
out.push_str("Admitted. (* admitted due to admit_proofs config flag *)\n");
}
else {
out.push_str("Qed.\n");
}
out
}
}
......
#![feature(box_patterns)]
use rrconfig;
pub mod code;
pub mod specs;
......
......@@ -33,7 +33,8 @@ lazy_static! {
.set_default("verify_deps", false)?
.set_default("no_verify", false)?
.set_default("cargo_path", "cargo")?
.set_default("cargo_command", "check")?;
.set_default("cargo_command", "check")?
.set_default("admit_proofs", false)?;
// 2. Override with the optional TOML file "RefinedRust.toml" (if there is any)
builder = builder.add_source(
......@@ -126,6 +127,11 @@ pub fn output_dir() -> Option<String> {
read_optional_setting("output_dir")
}
/// Whether to admit proofs of functions instead of running Qed.
pub fn admit_proofs() -> bool {
read_setting("admit_proofs")
}
/// Which file to read shims from?
pub fn shim_file() -> Option<String> {
read_optional_setting("shims")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment