py-aiger-abc
Aiger <-> ABC bridge
Installation
Non-Python Dependencies
This package currently assumes that the ABC and aigtoaig commands are installed and in the PATH. In the future, we hope to automatically include these dependencies, but currently one needs to install them on their own.
Python Package
If you just need to use aiger_abc, you can just run:
$ pip install py-aiger-abc
For developers, note that this project uses the poetry python package/dependency management tool. Please familarize yourself with it and then run:
$ poetry install
Usage
The primary entry point for using aiger_abc is the simplify
function which uses abc to simplify an AIG. For example, below we
show how aiger_abc can be used to simplify the following inefficient
encoding of const false.
import aiger
x = aiger.atom('x')
f = x ^ x
print(f.aig)
aag 4 1 0 1 3
2
8
4 2 2
6 3 3
8 5 7
import aiger_abc
f2 = aiger_abc.simplify(f)
print(f2.aig)
aag 1 1 0 1 0
2
0
Explicitly Specifying for abc and aigtoaig commands
simplify supports explicitly specifying the
abc and aigtoaig commands. This is useful
if you have installed them in non-standard paths
or names. E.g.,
f2 = aiger_abc.simplify(f, abc_cmd='abc', aigtoaig_cmf='aigtoaig')
Metadata
Release files for py-aiger-abc 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-aiger-abc-0.2.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_aiger_abc-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / py-aiger-abc-0.2.1.tar.gz
| Download URL | py-aiger-abc-0.2.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c71f5dbd0fe5bdd7a19ea94c62a89855299e7d4e98609f0567313b2a4ce16d5
|
|
BLAKE2b-256 checksum How to use checksums |
09b8884f659e31eeac94b4f5a1e731d71e05da10b7f00b3350de3755cf03efb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.4.0-47-generic
|
Release files / py_aiger_abc-0.2.1-py3-none-any.whl
| Download URL | py_aiger_abc-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d650b6ee885fda9a949922adc1769d533370a315b924cb55e6bd7a497afe117d
|
|
BLAKE2b-256 checksum How to use checksums |
0c1d1675310d44d3c09d9efc72b24c114347369b78adecee6cd4cec79f93d647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.4.0-47-generic
|