{"id":23451398,"url":"https://github.com/coloquinte/volute","last_synced_at":"2025-04-13T20:35:39.709Z","repository":{"id":187453022,"uuid":"634604701","full_name":"Coloquinte/volute","owner":"Coloquinte","description":"Implementation of logic function as lookup tables and sum of products","archived":false,"fork":false,"pushed_at":"2024-06-19T15:06:10.000Z","size":131,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-20T23:14:19.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/volute/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Coloquinte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-30T17:05:21.000Z","updated_at":"2024-06-19T14:54:37.000Z","dependencies_parsed_at":"2023-11-12T19:24:43.713Z","dependency_job_id":"3e5be55b-98df-4b71-b380-cc7991acc0d6","html_url":"https://github.com/Coloquinte/volute","commit_stats":null,"previous_names":["coloquinte/volute","coloquinte/logic-lut"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coloquinte%2Fvolute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coloquinte%2Fvolute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coloquinte%2Fvolute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Coloquinte%2Fvolute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Coloquinte","download_url":"https://codeload.github.com/Coloquinte/volute/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231033466,"owners_count":18317982,"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-12-24T00:25:54.678Z","updated_at":"2024-12-24T00:25:55.322Z","avatar_url":"https://github.com/Coloquinte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Volute crate](https://img.shields.io/crates/v/volute.svg)](https://crates.io/crates/volute)\n[![Volute documentation](https://docs.rs/volute/badge.svg)](https://docs.rs/volute)\n[![Build status](https://github.com/Coloquinte/volute/actions/workflows/build.yml/badge.svg)](https://github.com/Coloquinte/volute/actions/workflows/build.yml)\n\n\u003c!-- cargo-rdme start --\u003e\n\nLogic function manipulation using truth tables (LUTs)\n\nThe crate implements truth table datastructures, either arbitrary-size truth tables\n([`Lut`](https://docs.rs/volute/latest/volute/struct.Lut.html)), or more efficient\nfixed-size truth tables ([`Lut2` to `Lut12`](https://docs.rs/volute/latest/volute/struct.StaticLut.html)).\nThey provide logical operators and utility functions for analysis, canonization and decomposition.\nSome support is available for other standard representation, such as Sum-of-Products\n([`Sop`](https://docs.rs/volute/latest/volute/sop/struct.Sop.html)).\n\nAPI and documentation try to follow the same terminology as the C++ library [Kitty](https://libkitty.readthedocs.io/en/latest).\n\n# Examples\n\nCreate a constant-one Lut with five variables.\nCheck its hexadecimal value.\n```rust\nlet lut = Lut::one(5);\nassert_eq!(lut.to_string(), \"Lut5(ffffffff)\");\n```\n\nCreate a Lut4 (four variables) which is the logical and of the 1st and 3rd.\nCheck its hexadecimal value.\n```rust\nlet lut = Lut4::nth_var(0) \u0026 Lut4::nth_var(2);\nassert_eq!(lut.to_string(), \"Lut4(a0a0)\");\n```\n\nCreate a random Lut6 (six variables).\nDisplay its hexadecimal value.\n```rust\nlet lut = Lut6::random();\nprint!(\"{}\", lut);\n```\n\nCreate the parity function on three variables, and check that in can be decomposed as a Xor.\nCheck its value in binary.\n```rust\nlet lut = Lut::parity(3);\nassert_eq!(lut.top_decomposition(0), DecompositionType::Xor);\nassert_eq!(format!(\"{:b}\", lut), \"Lut3(10010110)\");\n```\n\n\u003c!-- cargo-rdme end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoloquinte%2Fvolute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoloquinte%2Fvolute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoloquinte%2Fvolute/lists"}