{"id":18763135,"url":"https://github.com/simre1/sat-solver","last_synced_at":"2025-12-05T22:30:15.020Z","repository":{"id":235098821,"uuid":"790049355","full_name":"Simre1/sat-solver","owner":"Simre1","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-10T11:19:17.000Z","size":254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T05:22:16.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simre1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T07:10:03.000Z","updated_at":"2024-06-10T11:19:21.000Z","dependencies_parsed_at":"2024-05-07T13:26:24.404Z","dependency_job_id":"9cf0fe39-cfb0-42ea-8bb5-d4c097ac1f4e","html_url":"https://github.com/Simre1/sat-solver","commit_stats":null,"previous_names":["simre1/sat-solver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsat-solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsat-solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsat-solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simre1%2Fsat-solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simre1","download_url":"https://codeload.github.com/Simre1/sat-solver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661789,"owners_count":19676409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T18:24:50.133Z","updated_at":"2025-12-05T22:30:14.943Z","avatar_url":"https://github.com/Simre1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sat-solver\n\n## Installation\n\nSet up a recent rust installation and then build it:\n\n```bash\ncargo build\n```\n \n## Running\n\nRun it by providing a CNF file in DIMACS format and choose one of the algorithms (simple, dpll, cdcl)\n\n```bash\ncargo run -- -a simple --cnf test-files/test1.cnf\ncargo run -- -a dpll --cnf test-files/test1.cnf\ncargo run -- -a cdcl --cnf test-files/test1.cnf\n```\n\n## Algorithms\n\nWe have implemented:\n- A simple recursive algorithm which tries to find a solution in a brute-force manner: [simple.rs](https://github.com/Simre1/sat-solver/blob/main/src/algorithm/simple.rs)\n- A dpll algorithm: [dpll.rs](https://github.com/Simre1/sat-solver/blob/main/src/algorithm/dpll.rs)\n- A cdcl algorithm (although buggy): [cdcl.rs](https://github.com/Simre1/sat-solver/blob/main/src/algorithm/cdcl.rs)\n\n## Benchmarking\n\n`./bench.sh` will run the the algorithms for each algorithm in the `test-formulas/bench` folder in parallel. \nIt uses the `time` and the `timeout` linux utilities to measure the time and stop them at 5 minutes.\n\n`./bench-csv-format.sh` formats the output of `bench.sh` into the csv format in order to easily create diagrams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimre1%2Fsat-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimre1%2Fsat-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimre1%2Fsat-solver/lists"}