3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-07-04 15:56:30 -07:00
parent 10d0404175
commit d0e20e44ff
714 changed files with 714 additions and 2142 deletions

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_AST_MAP_H_
#define API_AST_MAP_H_
#pragma once
#include "api/api_util.h"
#include "util/obj_hashtable.h"
@ -32,4 +31,3 @@ inline Z3_ast_map_ref * to_ast_map(Z3_ast_map v) { return reinterpret_cast<Z3_as
inline Z3_ast_map of_ast_map(Z3_ast_map_ref * v) { return reinterpret_cast<Z3_ast_map>(v); }
inline obj_map<ast, ast*> & to_ast_map_ref(Z3_ast_map v) { return to_ast_map(v)->m_map; }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_AST_VECTOR_H_
#define API_AST_VECTOR_H_
#pragma once
#include "api/api_util.h"
@ -34,4 +33,3 @@ inline Z3_ast_vector_ref * to_ast_vector(Z3_ast_vector v) { return reinterpret_c
inline Z3_ast_vector of_ast_vector(Z3_ast_vector_ref * v) { return reinterpret_cast<Z3_ast_vector>(v); }
inline ast_ref_vector & to_ast_vector_ref(Z3_ast_vector v) { return to_ast_vector(v)->m_ast_vector; }
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef API_DATALOG_H_
#define API_DATALOG_H_
#pragma once
#include "api/z3.h"
#include "ast/ast.h"
@ -46,4 +45,3 @@ inline Z3_fixedpoint of_datalog(Z3_fixedpoint_ref * s) { return reinterpret_cast
inline api::fixedpoint_context * to_fixedpoint_ref(Z3_fixedpoint s) { return to_fixedpoint(s)->m_datalog; }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_GOAL_H_
#define API_GOAL_H_
#pragma once
#include "api/api_util.h"
#include "tactic/goal.h"
@ -31,4 +30,3 @@ inline Z3_goal_ref * to_goal(Z3_goal g) { return reinterpret_cast<Z3_goal_ref *>
inline Z3_goal of_goal(Z3_goal_ref * g) { return reinterpret_cast<Z3_goal>(g); }
inline goal_ref to_goal_ref(Z3_goal g) { return g == nullptr ? goal_ref() : to_goal(g)->m_goal; }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_MODEL_H_
#define API_MODEL_H_
#pragma once
#include "api/api_util.h"
#include "model/model.h"
@ -55,4 +54,3 @@ inline Z3_func_entry of_func_entry(Z3_func_entry_ref * s) { return reinterpret_c
inline func_entry const * to_func_entry_ref(Z3_func_entry s) { return to_func_entry(s)->m_func_entry; }
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef API_POLYNOMIAL_H_
#define API_POLYNOMIAL_H_
#pragma once
#include "math/polynomial/polynomial.h"
@ -35,4 +34,3 @@ namespace api {
};
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_SOLVER_H_
#define API_SOLVER_H_
#pragma once
#include "util/mutex.h"
#include "api/api_util.h"
@ -63,4 +62,3 @@ inline Z3_solver_ref * to_solver(Z3_solver s) { return reinterpret_cast<Z3_solve
inline Z3_solver of_solver(Z3_solver_ref * s) { return reinterpret_cast<Z3_solver>(s); }
inline solver * to_solver_ref(Z3_solver s) { return to_solver(s)->m_solver.get(); }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_STATS_H_
#define API_STATS_H_
#pragma once
#include "api/api_util.h"
#include "util/statistics.h"
@ -31,4 +30,3 @@ inline Z3_stats_ref * to_stats(Z3_stats s) { return reinterpret_cast<Z3_stats_re
inline Z3_stats of_stats(Z3_stats_ref * s) { return reinterpret_cast<Z3_stats>(s); }
inline statistics & to_stats_ref(Z3_stats s) { return to_stats(s)->m_stats; }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_TACTIC_H_
#define API_TACTIC_H_
#pragma once
#include "api/api_goal.h"
#include "tactic/tactical.h"
@ -57,4 +56,3 @@ struct Z3_apply_result_ref : public api::object {
inline Z3_apply_result_ref * to_apply_result(Z3_apply_result g) { return reinterpret_cast<Z3_apply_result_ref *>(g); }
inline Z3_apply_result of_apply_result(Z3_apply_result_ref * g) { return reinterpret_cast<Z3_apply_result>(g); }
#endif

View file

@ -15,8 +15,7 @@ Author:
Revision History:
--*/
#ifndef API_UTIL_H_
#define API_UTIL_H_
#pragma once
#include "util/params.h"
#include "util/lbool.h"
@ -172,4 +171,3 @@ Z3_ast Z3_API NAME(Z3_context c, unsigned num_args, Z3_ast const* args) { \
Z3_CATCH_RETURN(0); \
}
#endif

View file

@ -18,8 +18,7 @@ Author:
Notes:
--*/
#ifndef Z3PP_H_
#define Z3PP_H_
#pragma once
#include<cassert>
#include<iostream>
@ -3572,5 +3571,4 @@ namespace z3 {
/*@}*/
/*@}*/
#undef Z3_THROW
#endif

View file

@ -17,8 +17,7 @@ Notes:
--*/
#ifndef Z3NATIVE_STUBS_H_
#define Z3NATIVE_STUBS_H_
#pragma once
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
@ -34,4 +33,3 @@ Notes:
#endif
#endif
#endif

View file

@ -18,8 +18,7 @@ Notes:
--*/
#ifndef Z3_H_
#define Z3_H_
#pragma once
#include <stdio.h>
#include <stdbool.h>
@ -34,5 +33,4 @@ Notes:
#include "z3_optimization.h"
#include "z3_fpa.h"
#include "z3_spacer.h"
#endif

View file

@ -18,8 +18,7 @@ Notes:
--*/
#ifndef Z3_ALGEBRAIC_H_
#define Z3_ALGEBRAIC_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -248,4 +247,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -3,7 +3,6 @@
--*/
#ifndef Z3_API_H_
#define Z3_API_H_
DEFINE_TYPE(Z3_symbol);
DEFINE_TYPE(Z3_literals);
@ -5563,7 +5562,7 @@ extern "C" {
/** @name Error Handling */
/*@{*/
#ifndef SAFE_ERRORS
#pragma once
/**
\brief Return the error code for the last API call.
@ -6730,4 +6729,3 @@ extern "C" {
/*@}*/
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_AST_CONTAINERS_H_
#define Z3_AST_CONTAINERS_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -197,4 +196,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_FIXEDPOINT_H_
#define Z3_FIXEDPOINT_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -381,4 +380,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_FPA_H_
#define Z3_FPA_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -1085,4 +1084,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_OPTIMIZATION_H_
#define Z3_OPTIMIZATION_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -359,4 +358,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -17,8 +17,7 @@ Notes:
--*/
#ifndef Z3_POLYNOMIAL_H_
#define Z3_POLYNOMIAL_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -51,4 +50,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -22,8 +22,7 @@ Notes:
#include "util/rational.h"
#include "api/z3_macros.h"
#ifndef Z3_PRIVATE_H_
#define Z3_PRIVATE_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -35,5 +34,4 @@ extern "C" {
};
#endif // __cplusplus
#endif

View file

@ -19,8 +19,7 @@ Author:
Notes:
--*/
#ifndef Z3_RCF_H_
#define Z3_RCF_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -204,4 +203,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_REPLAYER_H_
#define Z3_REPLAYER_H_
#pragma once
#include<iostream>
#include "api/z3.h"
@ -66,4 +65,3 @@ public:
void register_cmd(unsigned id, z3_replayer_cmd cmd, char const* name);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef Z3_SPACER_H_
#define Z3_SPACER_H_
#pragma once
#ifdef __cplusplus
extern "C" {
@ -140,4 +139,3 @@ extern "C" {
}
#endif // __cplusplus
#endif

View file

@ -18,8 +18,7 @@ Author:
Notes:
--*/
#ifndef Z3_V1_H_
#define Z3_V1_H_
#pragma once
#include "api/z3.h"
@ -61,4 +60,3 @@ Notes:
#define Z3_get_const_ast_decl Z3_get_app_decl
#define Z3_get_value Z3_eval_func_decl
#endif