Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVP for bottomup_cnf_to_bdd #156

Merged
merged 2 commits into from
Jul 23, 2023
Merged

MVP for bottomup_cnf_to_bdd #156

merged 2 commits into from
Jul 23, 2023

Conversation

mattxwang
Copy link
Member

@mattxwang mattxwang commented Jul 23, 2023

This PR adds a minimum version of the bottomup_cnf_to_bdd CLI tool. Of note is that bin targets require the main modules (rather than example, which uses test-only), so I've elected to put clap and serde_json behind a feature flag to avoid bloating the main library. This requires you to use the --features="cli" flag to build it.

To use:

cargo run --bin bottomup_cnf_to_bdd --features="cli" -- -f cnf/php-4-6.cnf -v > out.json

Or, to use a non-default option,

cargo run --bin bottomup_cnf_to_bdd --features="cli" -- -f cnf/php-4-6.cnf -v --order auto_force

To-do:

  • allow manual variable order
  • more stats
  • progress bar

Tracking issue: #155.

To use:

```
cargo run --bin bottomup_cnf_to_bdd --features="cli" -- -f cnf/php-4-6.cnf -v > out.json
```

To-do:

- more orders (need to implement the force heuristic?)
- specify manual variable order
- more stats
- progress bar
@mattxwang mattxwang added this to the 1.0 milestone Jul 23, 2023
@mattxwang mattxwang marked this pull request as ready for review July 23, 2023 21:30
@mattxwang mattxwang merged commit 974fb6a into main Jul 23, 2023
7 checks passed
@mattxwang mattxwang deleted the mvp-bottomup-cnf-to-bdd branch July 23, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant