mirror of
https://github.com/Z3Prover/z3
synced 2025-05-26 00:44:03 +00:00
checkpoint
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
4722fdfca5
commit
add684d8e9
377 changed files with 204 additions and 62 deletions
40
src/api_headers/z3.h
Normal file
40
src/api_headers/z3.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*++
|
||||
Copyright (c) 2007 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
z3.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Z3 API.
|
||||
|
||||
Author:
|
||||
|
||||
Nikolaj Bjorner (nbjorner)
|
||||
Leonardo de Moura (leonardo) 2007-06-8
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
|
||||
#ifndef _Z3__H_
|
||||
#define _Z3__H_
|
||||
|
||||
#include<stdio.h>
|
||||
#include"z3_macros.h"
|
||||
#include"z3_api.h"
|
||||
#include"z3_internal_types.h"
|
||||
|
||||
#undef __in
|
||||
#undef __out
|
||||
#undef __inout
|
||||
#undef __in_z
|
||||
#undef __out_z
|
||||
#undef __ecount
|
||||
#undef __in_ecount
|
||||
#undef __out_ecount
|
||||
#undef __inout_ecount
|
||||
|
||||
#endif
|
||||
|
7563
src/api_headers/z3_api.h
Normal file
7563
src/api_headers/z3_api.h
Normal file
File diff suppressed because it is too large
Load diff
34
src/api_headers/z3_internal_types.h
Normal file
34
src/api_headers/z3_internal_types.h
Normal file
|
@ -0,0 +1,34 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
z3_internal_types.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Z3 internal API type declarations.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2012-10-18
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef _Z3_INTERNAL_TYPES_H_
|
||||
#define _Z3_INTERNAL_TYPES_H_
|
||||
|
||||
DEFINE_TYPE(Z3_polynomial_manager);
|
||||
DEFINE_TYPE(Z3_polynomial);
|
||||
DEFINE_TYPE(Z3_monomial);
|
||||
|
||||
/*
|
||||
Definitions for update_api.py
|
||||
|
||||
def_Type('POLYNOMIAL_MANAGER', 'Z3_polynomial_manager', 'PolynomialManagerObj')
|
||||
def_Type('POLYNOMIAL', 'Z3_polynomial', 'PolynomialObj')
|
||||
def_Type('MONOMIAL', 'Z3_monomial', 'MonomialObj')
|
||||
*/
|
||||
|
||||
#endif
|
54
src/api_headers/z3_macros.h
Normal file
54
src/api_headers/z3_macros.h
Normal file
|
@ -0,0 +1,54 @@
|
|||
#ifndef __in
|
||||
#define __in
|
||||
#endif
|
||||
|
||||
#ifndef __out
|
||||
#define __out
|
||||
#endif
|
||||
|
||||
#ifndef __out_opt
|
||||
#define __out_opt __out
|
||||
#endif
|
||||
|
||||
#ifndef __ecount
|
||||
#define __ecount(num_args)
|
||||
#endif
|
||||
|
||||
#ifndef __in_ecount
|
||||
#define __in_ecount(num_args) __in __ecount(num_args)
|
||||
#endif
|
||||
|
||||
#ifndef __out_ecount
|
||||
#define __out_ecount(num_args) __out __ecount(num_args)
|
||||
#endif
|
||||
|
||||
#ifndef __inout_ecount
|
||||
#define __inout_ecount(num_args) __in __out __ecount(num_args)
|
||||
#endif
|
||||
|
||||
#ifndef __inout
|
||||
#define __inout __in __out
|
||||
#endif
|
||||
|
||||
#ifndef Z3_bool_opt
|
||||
#define Z3_bool_opt Z3_bool
|
||||
#endif
|
||||
|
||||
#ifndef Z3_API
|
||||
#define Z3_API
|
||||
#endif
|
||||
|
||||
#ifndef DEFINE_TYPE
|
||||
#define DEFINE_TYPE(T) typedef struct _ ## T *T
|
||||
#endif
|
||||
|
||||
#ifndef DEFINE_VOID
|
||||
#define DEFINE_VOID(T) typedef void* T
|
||||
#endif
|
||||
|
||||
#ifndef BEGIN_MLAPI_EXCLUDE
|
||||
#define BEGIN_MLAPI_EXCLUDE
|
||||
#endif
|
||||
#ifndef END_MLAPI_EXCLUDE
|
||||
#define END_MLAPI_EXCLUDE
|
||||
#endif
|
64
src/api_headers/z3_v1.h
Normal file
64
src/api_headers/z3_v1.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
/*++
|
||||
Copyright (c) 2011 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
z3_v1.h
|
||||
|
||||
Abstract:
|
||||
|
||||
Z3 1.x backwards compatibility macros.
|
||||
These macros are used to simulate the Z3 API using in the 1.x versions.
|
||||
This file should only be used by users still using the Z3 1.x API.
|
||||
|
||||
Author:
|
||||
|
||||
Leonardo de Moura (leonardo) 2011-09-22
|
||||
|
||||
Notes:
|
||||
|
||||
--*/
|
||||
#ifndef _Z3_V1_H_
|
||||
#define _Z3_V1_H_
|
||||
|
||||
#include"z3.h"
|
||||
|
||||
// Backwards compatibility
|
||||
#define Z3_type_ast Z3_sort
|
||||
#define Z3_const_decl_ast Z3_func_decl
|
||||
#define Z3_const Z3_app
|
||||
#define Z3_pattern_ast Z3_pattern
|
||||
#define Z3_UNINTERPRETED_TYPE Z3_UNINTERPRETED_SORT
|
||||
#define Z3_BOOL_TYPE Z3_BOOL_SORT
|
||||
#define Z3_INT_TYPE Z3_INT_SORT
|
||||
#define Z3_REAL_TYPE Z3_REAL_SORT
|
||||
#define Z3_BV_TYPE Z3_BV_SORT
|
||||
#define Z3_ARRAY_TYPE Z3_ARRAY_SORT
|
||||
#define Z3_TUPLE_TYPE Z3_DATATYPE_SORT
|
||||
#define Z3_UNKNOWN_TYPE Z3_UNKNOWN_SORT
|
||||
#define Z3_CONST_DECL_AST Z3_FUNC_DECL_AST
|
||||
#define Z3_TYPE_AST Z3_SORT_AST
|
||||
#define Z3_SORT_ERROR Z3_TYPE_ERROR
|
||||
#define Z3_mk_uninterpreted_type Z3_mk_uninterpreted_sort
|
||||
#define Z3_mk_bool_type Z3_mk_bool_sort
|
||||
#define Z3_mk_int_type Z3_mk_int_sort
|
||||
#define Z3_mk_real_type Z3_mk_real_sort
|
||||
#define Z3_mk_bv_type Z3_mk_bv_sort
|
||||
#define Z3_mk_array_type Z3_mk_array_sort
|
||||
#define Z3_mk_tuple_type Z3_mk_tuple_sort
|
||||
#define Z3_get_type Z3_get_sort
|
||||
#define Z3_get_pattern_ast Z3_get_pattern
|
||||
#define Z3_get_type_kind Z3_get_sort_kind
|
||||
#define Z3_get_type_name Z3_get_sort_name
|
||||
#define Z3_get_bv_type_size Z3_get_bv_sort_size
|
||||
#define Z3_get_array_type_domain Z3_get_array_sort_domain
|
||||
#define Z3_get_array_type_range Z3_get_array_sort_range
|
||||
#define Z3_get_tuple_type_num_fields Z3_get_tuple_sort_num_fields
|
||||
#define Z3_get_tuple_type_field_decl Z3_get_tuple_sort_field_decl
|
||||
#define Z3_get_tuple_type_mk_decl Z3_get_tuple_sort_mk_decl
|
||||
#define Z3_to_const_ast Z3_to_app
|
||||
#define Z3_get_numeral_value_string Z3_get_numeral_string
|
||||
#define Z3_get_const_ast_decl Z3_get_app_decl
|
||||
#define Z3_get_value Z3_eval_func_decl
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue