{"id":13749108,"url":"https://github.com/p4l1ly/z3-rust","last_synced_at":"2025-05-09T11:31:59.904Z","repository":{"id":57672783,"uuid":"149609195","full_name":"p4l1ly/z3-rust","owner":"p4l1ly","description":"High level bindings for the Microsoft's Z3 SMT solver.","archived":false,"fork":false,"pushed_at":"2018-10-03T13:07:20.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T12:51:44.327Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p4l1ly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-20T12:55:31.000Z","updated_at":"2018-10-21T00:55:05.000Z","dependencies_parsed_at":"2022-08-31T11:14:12.595Z","dependency_job_id":null,"html_url":"https://github.com/p4l1ly/z3-rust","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p4l1ly%2Fz3-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p4l1ly%2Fz3-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p4l1ly%2Fz3-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p4l1ly%2Fz3-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p4l1ly","download_url":"https://codeload.github.com/p4l1ly/z3-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253240350,"owners_count":21876593,"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-08-03T07:00:55.378Z","updated_at":"2025-05-09T11:31:58.021Z","avatar_url":"https://github.com/p4l1ly.png","language":"Rust","funding_links":[],"categories":["Projects"],"sub_categories":["Libraries"],"readme":"High level interface to the Z3 SMT solver. Currently, only support for boolean\nlogic is implemented. It is therefore usable only as a SAT solver. We have not\nyet considered thread safety or reasonable behaviour if multiple contexts are\nused at once.\n\n```\nuse z3::Stage;\n\n// Start to use Z3.\nlet mut ctx = z3::Context::new();\n\n// Create a variable.\nlet foo = ctx.var_from_string(\"foo\");\n\n// Add it to the solver.\nctx.assert(foo);\n\n{\n    // Push Z3 solver's stack.\n    let mut p = ctx.push();\n\n    // A basic example of combining formulae.\n    let foo_and_not_foo = p.and(vec![foo.inherit(), p.not(foo)]);\n    p.assert(foo_and_not_foo);\n\n    // No way to satisfy foo \u0026\u0026 !foo.\n    assert!(!p.is_sat())\n\n} // Pop Z3 solver's stack.\n\nassert!(ctx.is_sat())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp4l1ly%2Fz3-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp4l1ly%2Fz3-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp4l1ly%2Fz3-rust/lists"}