NAME

Z3::FFI - Low level FFI interfaces to the Z3 solver/prover

VERSION

This is built for Z3 version 4.8.4

DESCRIPTION

This is a direct translation of the Z3 C API to a Perl API. It's most likely not the level for working with Z3 from perl.

This is a mostly functional implementation right now. Three functions related to fixed point math are unimplemented currently.

It should work for any examples from the C API in Z3.

USE

You're going to want to refer to the C API documentation for Z3, http://z3prover.github.io/api/html/group__capi.html. All functions have the Z3_ stripped from their name and are declared as part of this module.

use Z3::FFI;

my $config = Z3::FFI::mk_config(); # Create a Z3 config object
my $context = Z3::FFI::mk_context($config); # Create the Z3 Context object
... # work with the Z3 context

This is a nearly complete and direct translation of the Z3 C API to Perl. All the sames kinds of semantics of the C API regarding ownership and allocation will apply. You likely don't want to use this library directly, but instead wait for the higher level version wrapper of this API to get finished, which will roughly match the Python API that already exists.

For some good examples of how to actually use this library, see the t/ directory in the distrobution.

TODO

More testing, from the C API example files

EXPECTED ISSUES

Memory leaks. Due to the differing levels of the APIs and languages, I strongly suspect that there's going to be some memory leaks somewhere. I'll try to fix these as they're found, but they are not a priority at the moment.

SEE ALSO

Alien::Z3

AUTHOR

Ryan Voots <simcop@cpan.org>