Skip to content

Commit 3004a9b

Browse files
author
GBathie
committed
Update readme
1 parent 47a3000 commit 3004a9b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@ This repository contains the code accompanying our paper *LTLf Learning Meets Bo
44

55
## Requirements
66
To run the code, you need to have [Rust](https://www.rust-lang.org/tools/install) installed. The code can be compiled using:
7+
78
```
89
cargo build --release
910
```
1011

1112
## Running the code
13+
1214
The three algorithms (`set-cover`, `enum`, `beam-search`) can be run with multiple parameters by changing command line arguments. For instance,
1315
```
14-
target/release/bolt example_input.json 8 10 beam-search 100 70
16+
cargo run --release -- example_input.json 8 10 beam-search 100 70
1517
```
1618
runs the beam search algorithm on file `example_input.json` with LTL2BS-switch = 8, size-dom = 10, beam-width = 100, and D&C-switch = 70.
1719

20+
To see the command line arguments and options, use `cargo run -r -- -h`
21+
1822
The Rust source code is in directory `src/`.

src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ fn main() {
2828
AlgoCommand::BeamSearch(p) => get_name_time_sol(&input_filename, max_size_ltl, domin_nb, p),
2929
};
3030

31-
println!("{}", sol.map_or(String::new(), |f| format!("{f}")))
31+
println!(
32+
"{}",
33+
sol.map_or(String::from("Formula not found"), |f| format!("{f}"))
34+
)
3235
}
3336

3437
fn get_name_time_sol<P: BoolAlgoParams + Clone>(
@@ -61,7 +64,7 @@ fn get_name_time_sol<P: BoolAlgoParams + Clone>(
6164
#[derive(Parser)]
6265
// #[command(version, about, long_about = None)]
6366
struct CliArgs {
64-
/// Name of the .trace file to read.
67+
/// Name of the .json file to read.
6568
input_filename: PathBuf,
6669
/// Run LTL enumeration until `max_size_ltl`
6770
/// before switching to boolean algorithm.

0 commit comments

Comments
 (0)