Overview
Library for converting and serializing any symbolic circuit into AIGER format. It can also be used to query and iterate over the AIGER inputs, gates, and outputs which could be used to generate an AST for a solver.
Using Aiger
# use Aiger;
# use SimpleCircuit;
# let output = lit;
// Output is the output value of a complex circuit
let aiger = with_output;
let serialized = aiger.serialize_binary;
Iterating over circuit components
# use Aiger;
# use SimpleCircuit;
# let output = lit;
let aiger = with_output;
for input in aiger.inputs
for gate in aiger.gates
for output in aiger.outputs
Simple Circuit
The SimpleCircuit object can be used to build circuits for Aiger.
# use Aiger;
# use ;
let output = !var & lit;
let aiger = with_output;
let serialized = aiger.serialize_binary;
Circuit Conversion
This library does not prescribe a circuit representation. Simply implement the AsAigerCircuit trait to enable support for your own custom circuit type.
# use ;
#