Bitwuzla API Examples ===================== This directory contains examples that illustrate how to use Bitwuzla's C, C++ and Python APIs. Build ----- The examples in this directory are not built by default. To build, issue the following commands. ``` meson setup cd meson compile meson test # run all examples (stdout output not printed) meson test -v # run all examples (stdout output printed) .// # alternative way to run example ``` **Note:** If you installed Bitwuzla in a non-standard location, you have to additionally specify the path to the `pkgconfig` directory before when calling `meson setup` as follows: ``` meson setup --pkg-config-path=/lib/pkgconfig ``` The examples binaries are built into `/`, where `` mirrors the path to the source files, e.g., `/c/quickstart` for example `c/quickstart.c`. To enable Python examples in the test suite, configure the build directory with a path to the Bitwuzla Python module. For the non-standard location from above, call `meson setup` as follows: ``` meson setup --pkg-config-path=/lib/pkgconfig \ -Dpython_path=/lib/python/site-packages/ ``` Python Examples can also be run manually via `python python/`, e.g., `python python/quickstart.py`.