This repository contains the exercises for the laboratory of the lecture SAT Solving at the University of Applied Sciences.
- GCC
- Clone the repository
git clone git@github.com:AnsgarLichter/sat-solving-laboratory.git
- Clone CaDiCal into the repository's root folder
cd satsolving
git clone https://github.com/arminbiere/cadical.git
- Build CaDiCal library
cd cadical
./configure && make
The CaDiCal library is at the root of the project.
- Include the ipasir header of the CaDiCal library if you want to use CaDiCal through the ipasir interface
#include "../cadical/src/ipasir.h"
- Go to the application's folder
cd laboratory1
- Compile the program
g++ -o graph-coloring graph-coloring.cpp -I../cadical/src -L../cadical/build -l:libcadical.a
- Run the program
./graph-coloring ./inputs/<file>