Skip to content
Snippets Groups Projects
Commit fea54c47 authored by Per's avatar Per
Browse files

works with llvm7 and klee aur

parent 75e5fea6
No related branches found
No related tags found
No related merge requests found
target
**/*.rs.bk
Cargo.lock
......@@ -10,7 +10,7 @@ fn main() {
let args = env::args().skip(2).collect::<Vec<_>>();
// turn `cargo klee --example foo` into `xargo rustc --example foo -- (..)`
let mut c = Command::new("xargo");
let mut c = Command::new("cargo");
c.arg("rustc")
.args(&args)
// verbose output for debugging purposes
......@@ -91,27 +91,34 @@ fn main() {
"debug"
};
let mut docker = Command::new("docker");
docker
.arg("run")
.arg("--rm")
.args(&["--user", &format!("{}:{}", uid(), gid())])
.args(&[
"-v",
&format!("{}:/mnt", env::current_dir().unwrap().display()),
])
.args(&["-w", "/mnt"])
.arg("-it")
.arg("afoht/llvm-klee-4")
.args(&[
"/usr/bin/klee",
&format!("target/{}/examples/{}{}.bc", profile, example, suffix),
]);
// print full command for debugging purposes
eprintln!("{:?}", docker);
assert!(docker.status().unwrap().success());
// let mut docker = Command::new("docker");
// docker
// .arg("run")
// .arg("--rm")
// .args(&["--user", &format!("{}:{}", uid(), gid())])
// .args(&[
// "-v",
// &format!("{}:/mnt", env::current_dir().unwrap().display()),
// ])
// .args(&["-w", "/mnt"])
// .arg("-it")
// .arg("afoht/llvm-klee-4")
// .args(&[
// "/usr/bin/klee",
// &format!("target/{}/examples/{}{}.bc", profile, example, suffix),
// ]);
// // print full command for debugging purposes
// eprintln!("{:?}", docker);
//
// assert!(docker.status().unwrap().success());
let mut klee_cmd = Command::new("klee");
klee_cmd.arg(&format!(
"target/{}/examples/{}{}.ll",
profile, example, suffix
));
eprintln!("{:?}", klee_cmd);
assert!(klee_cmd.status().unwrap().success());
}
// NOTE from cross
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment