Skip to content

Separate preprocessing and solving into separate modules#11

Open
AHartNtkn wants to merge 1 commit intomainfrom
separate-preprocessing
Open

Separate preprocessing and solving into separate modules#11
AHartNtkn wants to merge 1 commit intomainfrom
separate-preprocessing

Conversation

@AHartNtkn
Copy link
Copy Markdown
Owner

@AHartNtkn AHartNtkn commented Oct 22, 2024

Separate preprocessing and solving into separate modules.

  • Add src/preprocessing.rs to contain preprocessing functions.
  • Move repeatedly_resolve_and_update function from src/cnf.rs to src/preprocessing.rs.
  • Add save_transformed_cnf function in src/preprocessing.rs to save the transformed CNF formula to a new file.
  • Remove repeatedly_resolve_and_update function from src/cnf.rs.
  • Import preprocessing module in src/cnf.rs.
  • Update solve function in src/main.rs to call preprocessing functions from src/preprocessing.rs.
  • Add an option in src/main.rs to save the transformed CNF formula to a new file.
  • Import preprocessing module in src/main.rs.

For more details, open the Copilot Workspace session.

Separate preprocessing and solving into separate modules.

* Add `src/preprocessing.rs` to contain preprocessing functions.
* Move `repeatedly_resolve_and_update` function from `src/cnf.rs` to `src/preprocessing.rs`.
* Add `save_transformed_cnf` function in `src/preprocessing.rs` to save the transformed CNF formula to a new file.
* Remove `repeatedly_resolve_and_update` function from `src/cnf.rs`.
* Import `preprocessing` module in `src/cnf.rs`.
* Update `solve` function in `src/main.rs` to call preprocessing functions from `src/preprocessing.rs`.
* Add an option in `src/main.rs` to save the transformed CNF formula to a new file.
* Import `preprocessing` module in `src/main.rs`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AHartNtkn/odesat?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant