3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

other components

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-02 11:48:48 -07:00
parent e9eab22e5c
commit 68269c43a6
250 changed files with 70871 additions and 0 deletions

View file

@ -0,0 +1,26 @@
WARNING: this example still uses the old Z3 (version 3.x) C API. The current version is backward compatible. Please go to the examples/c++ for examples using the new API.
This directory contains scripts to build the test application using
Microsoft C compiler, or gcc.
1) Using Microsoft C compiler
Use 'build.cmd' to build the test application using Microsoft C
compiler.
Remark: The Microsoft C compiler (cl) must be in your path,
or you can use the Visual Studio Command Prompt.
The script 'exec.cmd' adds the bin directory to the path. So,
test_capi.exe can find z3.dll.
2) Using gcc
Use 'build.sh' to build the test application using gcc.
The script 'exec.sh' adds the bin directory to the path. So,
test_capi.exe can find z3.dll.
Remark: the scripts 'build.sh' and 'exec.sh' assumes you are in a
Cygwin or Mingw shell.

View file

@ -0,0 +1,8 @@
WARNING: this example still uses the old Z3 (version 3.x) C API. The current version is backward compatible. Please go to the examples/c++ for examples using the new API.
This directory contains scripts to build the test application using gcc.
Use 'build.sh' to build the test application using gcc.
The script 'exec.sh' adds the lib directory to the path. So,
test_capi can find libz3.so.

8
test_capi/README-osx.txt Normal file
View file

@ -0,0 +1,8 @@
WARNING: this example still uses the old Z3 (version 3.x) C API. The current version is backward compatible. Please go to the examples/c++ for examples using the new API.
This directory contains scripts to build the test application using gcc.
Use 'build.sh' to build the test application using gcc.
The script 'exec.sh' adds the lib directory to the path. So,
test_capi can find libz3.dylib.

View file

@ -0,0 +1 @@
gcc -fopenmp -o test_capi test_capi.c -I ../../include -L ../../lib -lz3

View file

@ -0,0 +1 @@
gcc -fopenmp -o test_capi test_capi.c -I ../../include -L ../../lib -lz3

View file

@ -0,0 +1 @@
cl /I ..\..\include ..\..\bin\z3.lib test_capi.c

View file

@ -0,0 +1 @@
gcc -fopenmp -o test_capi.exe -I ../../include ../../bin/z3.dll test_capi.c

View file

@ -0,0 +1,4 @@
# Note: Z3 was built using C++, so libz3.a has C++ dependencies.
# You can use gcc to link the program, but you need tell it
# to link the C++ libraries
g++ -fopenmp -static -I../../include -L../../lib test_capi.c -lz3 -o test_capi

View file

@ -0,0 +1,4 @@
# Note: Z3 was built using C++, so libz3.a has C++ dependencies.
# You can use gcc to link the program, but you need tell it
# to link the C++ libraries
g++ -fopenmp -I../../include test_capi.c ../../lib/libz3.a -o test_capi

View file

@ -0,0 +1,2 @@
export LD_LIBRARY_PATH=../../lib:$LD_LIBRARY_PATH
./test_capi

View file

@ -0,0 +1,2 @@
export DYLD_LIBRARY_PATH=../../lib:$DYLD_LIBRARY_PATH
./test_capi

View file

@ -0,0 +1,5 @@
@echo off
SETLOCAL
set PATH=..\..\bin;%PATH%
test_capi.exe
ENDLOCAL

View file

@ -0,0 +1,2 @@
export PATH=../../bin:$PATH
./test_capi.exe

2695
test_capi/test_capi.c Normal file

File diff suppressed because it is too large Load diff

1246
test_capi/test_capi.vcxproj Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>