A simple implementation of the Congruence Closure Algorithm used to decide the satisfiablity of formulas in the quantifier-free theory of equality.
- Create a virtual environment from the
requirements.txt
file. - Done.
To test the algorithm and its sub-functions run test.py
. This will also
generate a coverage report.
As of right now, the DAG has to be created manually. Edit the file run.py
(examples are included):
- Add nodes for the DAG
- Set the nodes' arguments.
- Create two lists:
- A merge list for all equalities.
- An inequalities list that will be used to check the formula's satisfiability.