Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Componolit/AZ3
Ada binding to the Z3 Theorem Prover
https://github.com/Componolit/AZ3
Last synced: 3 months ago
JSON representation
Ada binding to the Z3 Theorem Prover
- Host: GitHub
- URL: https://github.com/Componolit/AZ3
- Owner: Componolit
- License: mit
- Created: 2020-10-15T16:07:45.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T14:44:47.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T20:38:51.751Z (5 months ago)
- Language: Ada
- Size: 426 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-ada - az3 - Ada binding for Z3. (Libraries / Algorithms, Containers and Protocols)
README
# AZ3 - Z3 Binding for Ada
AZ3 is an Ada binding to the [Z3 theorem prover](https://github.com/Z3Prover/z3).
NOTE: **This binding is not complete, yet. If you are missing a feature, feel free to open an issue or contribute through a pull request on GitHub.**
# Usage
```Ada
with Ada.Text_IO; use Ada.Text_IO;
with Z3; use Z3;procedure Use_Z3
is
S : Solver := Create;
begin
S.Assert (Int ("X") < Int (3) and Int ("X") > Int (100));
if S.Check = Result_False then
Put_Line ("Contradiction found");
end if;
end Use_Z3;
```# Background
The thin-binding was extracted from the Z3 sources using
```
$ gcc -fdump-ada-spec -c z3/z3/src/api/z3.h
```GNAT version:
```
$ gcc --version
gcc (GCC) 9.3.1 20200430 (for GNAT Community 2020 20200429)
Copyright (C) 2019 Free Software Foundation, Inc.
```# License
MIT License (same as Z3). See LICENSE.txt for details.