Skip to content

Commit

Permalink
feat(rarity): adapt engine file for rarity simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
huksys authored and ChristianMoesl committed Mar 1, 2021
1 parent 7b9e001 commit aa39116
Show file tree
Hide file tree
Showing 3 changed files with 714 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pub mod util;
pub mod disassemble;
pub mod engine;
pub mod path_exploration;
pub mod rarity;
pub mod solver;

use engine::{Bug, Engine, EngineError, EngineOptions};
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use monster::{
engine::{self, EngineOptions},
execute_elf_with,
path_exploration::{ControlFlowGraph, ShortestPathStrategy},
solver,
rarity, solver,
};
use riscu::load_object_file;
use std::{env, fmt::Display, fs::File, io::Write, path::Path};
Expand Down Expand Up @@ -119,7 +119,7 @@ fn main() -> Result<()> {
input, output, megabytes, cycles, rounds
);

Ok(())
rarity::execute(input, output, ByteSize::mb(megabytes), rounds, cycles)
}
_ => unreachable!(),
}
Expand Down
Loading

0 comments on commit aa39116

Please sign in to comment.