Skip to content

Commit

Permalink
Fix recursion support for shortest path heursitic (#69)
Browse files Browse the repository at this point in the history
 - use consistent names for CLI arguments
 - move all tests with external dependencies to tests/ (integration
 test)
 - refactor integration tests
 - define feature `pictures` to optionally generate images of CFG's
 - execute all integration tests in parallel for every source file
 - rename directory `symbolic` to `examples`

closes #69
  • Loading branch information
ChristianMoesl committed Nov 12, 2020
1 parent c5c2867 commit ac52676
Show file tree
Hide file tree
Showing 42 changed files with 747 additions and 344 deletions.
217 changes: 145 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ authors = ["Christian Mösl <[email protected]>", "Fabian Nedoluha <monste
edition = "2018"
description = "Monster is a symbolic execution engine for 64-bit RISC-V code"

[features]
pictures = []

[dependencies]
goblin = "~0.2.3"
byteorder = "~1.3.4"
Expand All @@ -18,9 +21,11 @@ modinverse = "~0.1.1"
log = "~0.4.11"
env_logger = "~0.8.1"
bytesize = "~1.0.1"
itertools = "~0.9.0"

[dev-dependencies]
serial_test = "~0.4.0"
rayon = "~1.5.0"
tempfile = "~3.1.0"

[dev-dependencies.cargo-husky]
version = "1"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Input == #b00110001 (== 49 == '1')
*/

// Pull in the system libc library for what crt0.o likely requires.
use std::process::exit;
use std::io::{stdin, Read};
use std::process::exit;

// Entry point for this program.
#[allow(unconditional_panic)]
Expand All @@ -20,7 +20,7 @@ fn main() {

stdin().read(&mut x);

x[0] = x[0] - 48;
x[0] -= 48;

// division by zero if the input was '0' (== 48)
let mut a = 41 + (1 / x[0]);
Expand All @@ -36,4 +36,3 @@ fn main() {
exit(0);
}
}

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit ac52676

Please sign in to comment.