3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 09:34:08 +00:00
z3/examples/maxsat
Bruce Mitchener 73b3da37d8 Typo fixes.
2018-01-02 22:48:06 +07:00
..
CMakeLists.txt [TravisCI][CMake] Add Z3_C_EXAMPLES_FORCE_CXX_LINKER CMake option 2017-10-16 08:56:17 +01:00
ex.smt fix example file to be smt2 format 2017-11-29 19:38:47 -08:00
maxsat.c fix maxsat compilation for maxsat example 2017-11-29 09:00:37 -08:00
README Typo fixes. 2018-01-02 22:48:06 +07: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 used as input for the maxsat test application.