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:
parent
e9eab22e5c
commit
68269c43a6
250 changed files with 70871 additions and 0 deletions
26
test_capi/README-external.txt
Normal file
26
test_capi/README-external.txt
Normal 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.
|
||||
|
8
test_capi/README-linux.txt
Normal file
8
test_capi/README-linux.txt
Normal 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
8
test_capi/README-osx.txt
Normal 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.
|
||||
|
1
test_capi/build-external-linux.sh
Normal file
1
test_capi/build-external-linux.sh
Normal file
|
@ -0,0 +1 @@
|
|||
gcc -fopenmp -o test_capi test_capi.c -I ../../include -L ../../lib -lz3
|
1
test_capi/build-external-osx.sh
Normal file
1
test_capi/build-external-osx.sh
Normal file
|
@ -0,0 +1 @@
|
|||
gcc -fopenmp -o test_capi test_capi.c -I ../../include -L ../../lib -lz3
|
1
test_capi/build-external.cmd
Normal file
1
test_capi/build-external.cmd
Normal file
|
@ -0,0 +1 @@
|
|||
cl /I ..\..\include ..\..\bin\z3.lib test_capi.c
|
1
test_capi/build-external.sh
Normal file
1
test_capi/build-external.sh
Normal file
|
@ -0,0 +1 @@
|
|||
gcc -fopenmp -o test_capi.exe -I ../../include ../../bin/z3.dll test_capi.c
|
4
test_capi/build-static-linux.sh
Normal file
4
test_capi/build-static-linux.sh
Normal 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
|
4
test_capi/build-static-osx.sh
Normal file
4
test_capi/build-static-osx.sh
Normal 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
|
2
test_capi/exec-external-linux.sh
Normal file
2
test_capi/exec-external-linux.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export LD_LIBRARY_PATH=../../lib:$LD_LIBRARY_PATH
|
||||
./test_capi
|
2
test_capi/exec-external-osx.sh
Normal file
2
test_capi/exec-external-osx.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export DYLD_LIBRARY_PATH=../../lib:$DYLD_LIBRARY_PATH
|
||||
./test_capi
|
5
test_capi/exec-external.cmd
Normal file
5
test_capi/exec-external.cmd
Normal file
|
@ -0,0 +1,5 @@
|
|||
@echo off
|
||||
SETLOCAL
|
||||
set PATH=..\..\bin;%PATH%
|
||||
test_capi.exe
|
||||
ENDLOCAL
|
2
test_capi/exec-external.sh
Normal file
2
test_capi/exec-external.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
export PATH=../../bin:$PATH
|
||||
./test_capi.exe
|
2695
test_capi/test_capi.c
Normal file
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
1246
test_capi/test_capi.vcxproj
Normal file
File diff suppressed because it is too large
Load diff
3
test_capi/test_capi.vcxproj.user
Normal file
3
test_capi/test_capi.vcxproj.user
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue