flamapy-dnnf
flamapy-dnnf is a flamapy plugin for exact analysis of feature
models via d-DNNF knowledge compilation, using the d4 compiler.
d-DNNF (deterministic Decomposable Negation Normal Form) is a highly succinct compilation target that supports exact, polytime model counting. It complements the ecosystem:
flamapy-bdd— OBDD; exact, but can blow up on large models.flamapy-sdd— SDD; exact, more succinct than OBDD, pure-Python (PySDD).flamapy-sharpsat— ApproxMC; approximate count for very large models.flamapy-dnnf— d4/d-DNNF; exact count that scales to large industrial models.
Requirements
d4 is a native C++ binary with no PyPI package. Install it from
https://github.com/crillab/d4 and either put it on your PATH as d4 or point
FLAMAPY_D4_PATH at the binary.
pip install flamapy-dnnf
export FLAMAPY_D4_PATH=/path/to/d4 # or have `d4` on PATH
Operations
| Operation | Class |
|---|---|
| Exact number of configurations | DDNNFConfigurationsNumber |
| Satisfiable (non-void) | DDNNFSatisfiable |
Usage
from flamapy.metamodels.fm_metamodel.transformations import UVLReader
from flamapy.metamodels.dnnf_metamodel.transformations import FmToDDNNF
from flamapy.metamodels.dnnf_metamodel.operations import DDNNFConfigurationsNumber
fm = UVLReader('model.uvl').transform()
dnnf_model = FmToDDNNF(fm).transform() # add compile=True to also dump the d-DNNF file
count = DDNNFConfigurationsNumber().execute(dnnf_model).get_result()
License
GPL-3.0-or-later.
Metadata
Release files for flamapy-dnnf 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flamapy_dnnf-2.6.0.tar.gz | 9.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flamapy_dnnf-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.0 kB
Release files / flamapy_dnnf-2.6.0.tar.gz
| Download URL | flamapy_dnnf-2.6.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48a6be28906714bdf86a954ad460bea7eec179f10b315a63126b466ffab24d39
|
|
BLAKE2b-256 checksum How to use checksums |
295e3800882442eabea5ef4ec6e7ae25b1c282dfc309df6cc20a6604c16438ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / flamapy_dnnf-2.6.0-py3-none-any.whl
| Download URL | flamapy_dnnf-2.6.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eddfd0e5feca04da66ee1df7ad2f647e51ea02393145d255b2d58fd26537b40
|
|
BLAKE2b-256 checksum How to use checksums |
4bd1f3d13ff17e5931bab3543da880ec1409e82b24098279a78dec287dcd95dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for flamapy-dnnf 2.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.