Add bootstrap script and removed the need for the inject comment

This commit is contained in:
Felipe g 2022-08-23 09:20:30 -03:00
parent a8662bb93f
commit 4167d3f590
3 changed files with 636 additions and 613 deletions

4
bootstrap.sh Executable file
View File

@ -0,0 +1,4 @@
cargo build --release
# Probably we should just use git clone in Wikind?
cd ../Wikind
../Kind2/target/release/kind2 to-hvm Kind/TypeChecker.kind2 >> ../Kind2/src/checker.hvm

File diff suppressed because it is too large Load Diff

View File

@ -287,7 +287,7 @@ pub fn readback_string(rt: &hvm::Runtime, host: u64) -> String {
fn gen_checker(book: &Book) -> String {
// Compile the Kind2 file to HVM checker
let base_check_code = compile_book(&book);
let mut check_code = (&CHECKER_HVM[0 .. CHECKER_HVM.find("////INJECT////").unwrap()]).to_string();
let mut check_code = CHECKER_HVM.to_string();
check_code.push_str(&base_check_code);
return check_code;
}