Skip to main content

Bridge to using Berkeley-ABC with py-aiger.

Project description


Aiger <-> ABC bridge

PyPI version License: MIT


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


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
aag 4 1 0 1 3
4 2 2
6 3 3
8 5 7
import aiger_abc
f2 = aiger_abc.simplify(f)
aag 1 1 0 1 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')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-aiger-abc, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size py_aiger_abc-0.2.1-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size py-aiger-abc-0.2.1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page