3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-09 19:01:50 +00:00
z3/examples/maxsat
Dan Liew 4d6cbd3788 [CMake] Teach CMake to build the maxsat example as an external
project. The project can be built by building the new `c_maxsat_example`
target.
2017-06-26 11:58:51 +01:00
..
CMakeLists.txt [CMake] Teach CMake to build the maxsat example as an external 2017-06-26 11:58:51 +01:00
ex.smt moved dll and examples 2012-10-23 16:33:20 -07:00
maxsat.c fix build of maxsat.c 2015-11-22 22:10:22 -08:00
README Fix typo 2016-03-23 12:51:41 +09:00

Small example using the C bindings.
To build the example execute
   make examples
in the build directory.

This command will create the executable maxsat.
On Windows, you can just execute it.
On OSX and Linux, you must install z3 first using 
   sudo make install
OR update LD_LIBRARY_PATH (Linux) or DYLD_LIBRARY_PATH (OSX) with the build directory. You need that to be able to find the Z3 shared library.

This directory contains a test file (ex.smt) that can be use as input for the maxsat test application.