Skip to content
Snippets Groups Projects
Commit a3fed0c1 authored by Mark Hakansson's avatar Mark Hakansson
Browse files

Add an option to set all klee CLI flags/options

parent 1a57da36
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,13 @@ fn run() -> Result<i32, failure::Error> {
.short("g")
.help("Run the generated replay binary in `gdb`. The environment variable `GDB_CWD` determines the `gdb` working directory, if unset `gdb` will execute in the current working directory"),
)
// This needs to be the last argument!
.arg(
Arg::with_name("options")
.takes_value(true)
.raw(true)
.help("Add native `klee` CLI options after the sequence `--`. See `klee --help` for all available options.")
)
.get_matches();
let is_example = matches.is_present("example");
......@@ -278,6 +285,12 @@ fn run() -> Result<i32, failure::Error> {
// klee analysis
if is_ktest || !is_replay {
let mut klee = Command::new("klee");
// Check for additional KLEE options which will be sent to `klee`
if let Some(klee_options) = matches.values_of("options") {
for option in klee_options {
klee.arg(option);
}
}
klee
// ll file to analyse
.arg(ll.unwrap());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment