3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-06 03:10:25 +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

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef ARITH_REWRITER_H_
#define ARITH_REWRITER_H_
#pragma once
#include "ast/rewriter/poly_rewriter.h"
#include "ast/arith_decl_plugin.h"
@ -194,4 +193,3 @@ public:
br_status mk_tanh_core(expr * arg, expr_ref & result);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef ARRAY_REWRITER_H_
#define ARRAY_REWRITER_H_
#pragma once
#include "ast/array_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -96,4 +95,3 @@ public:
};
#endif

View file

@ -21,8 +21,7 @@ Revision History:
--*/
#ifndef AST_COUNTER_H_
#define AST_COUNTER_H_
#pragma once
#include "ast/ast.h"
#include "util/map.h"
@ -103,4 +102,3 @@ class ast_counter {
void dec(ast * el) { update(el, -1); }
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef BIT2INT_H_
#define BIT2INT_H_
#pragma once
#include "ast/bv_decl_plugin.h"
#include "ast/arith_decl_plugin.h"
@ -88,5 +87,4 @@ public:
void operator()(expr * m, expr_ref & result, proof_ref& p);
};
#endif /* BIT2INT_H_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef BIT_BLASTER_H_
#define BIT_BLASTER_H_
#pragma once
#include "ast/rewriter/bool_rewriter.h"
#include "ast/rewriter/bit_blaster/bit_blaster_params.h"
@ -62,5 +61,4 @@ public:
bit_blaster_params const & get_params() const { return this->m_params; }
};
#endif /* BIT_BLASTER_H_ */

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef BIT_BLASTER_PARAMS_H_
#define BIT_BLASTER_PARAMS_H_
#pragma once
struct bit_blaster_params {
bool m_bb_ext_gates;
@ -39,5 +38,4 @@ struct bit_blaster_params {
}
};
#endif /* BIT_BLASTER_PARAMS_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef BIT_BLASTER_REWRITER_H_
#define BIT_BLASTER_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "util/obj_hashtable.h"
@ -44,5 +43,4 @@ private:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef BIT_BLASTER_TPL_H_
#define BIT_BLASTER_TPL_H_
#pragma once
#include "util/rational.h"
@ -130,4 +129,3 @@ public:
void mk_abs(unsigned sz, expr * const * a_bits, expr_ref_vector & out_bits);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef BOOL_REWRITER_H_
#define BOOL_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -239,4 +238,3 @@ public:
m_cfg(m, p) {}
};
#endif

View file

@ -17,8 +17,7 @@
Revision History:
--*/
#ifndef BV_BOUNDS_H_23754
#define BV_BOUNDS_H_23754
#pragma once
#include "ast/ast.h"
#include "ast/bv_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -127,4 +126,3 @@ inline bool bv_bounds::is_constant_add(unsigned bv_sz, expr * e, app*& v, numera
}
#endif /* BV_BOUNDS_H_23754 */

View file

@ -17,8 +17,7 @@ Author:
Revision History:
--*/
#ifndef BV_ELIM_H_
#define BV_ELIM_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -46,5 +45,4 @@ public:
{}
};
#endif /* BV_ELIM_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef BV_REWRITER_H_
#define BV_REWRITER_H_
#pragma once
#include "ast/rewriter/poly_rewriter.h"
#include "ast/bv_decl_plugin.h"
@ -219,4 +218,3 @@ public:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef DATATYPE_REWRITER_H_
#define DATATYPE_REWRITER_H_
#pragma once
#include "ast/datatype_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -32,4 +31,3 @@ public:
br_status mk_eq_core(expr * lhs, expr * rhs, expr_ref & result);
};
#endif

View file

@ -18,8 +18,7 @@ Revision History:
Christoph Wintersteiger, 2010-03-30: Added Destr. Multi-Equality Resolution
--*/
#ifndef DER_H_
#define DER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/var_subst.h"
@ -179,5 +178,4 @@ public:
typedef der_rewriter der_star;
#endif /* DER_H_ */

View file

@ -18,8 +18,7 @@ Revision History:
Christoph Wintersteiger 2010-04-06: Added implementation
--*/
#ifndef DISTRIBUTE_FORALL_H_
#define DISTRIBUTE_FORALL_H_
#pragma once
#include "ast/ast.h"
#include "ast/act_cache.h"
@ -77,4 +76,3 @@ protected:
void flush_cache() { m_cache.cleanup(); }
};
#endif /* DISTRIBUTE_FORALL_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef DL_REWRITER_H_
#define DL_REWRITER_H_
#pragma once
#include "ast/dl_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -30,4 +29,3 @@ public:
br_status mk_app_core(func_decl * f, unsigned num_args, expr * const * args, expr_ref & result);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef ELIM_BOUNDS2_H_
#define ELIM_BOUNDS2_H_
#pragma once
#include "ast/ast.h"
#include "ast/arith_decl_plugin.h"
@ -73,5 +72,4 @@ public:
~elim_bounds_rw() override {}
};
#endif /* ELIM_BOUNDS2_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef ENUM_REWRITER_H_
#define ENUM_REWRITER_H_
#pragma once
#include "ast/datatype_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -45,4 +44,3 @@ public:
void set_is_fd(i_sort_pred* sp) const;
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef EXPR_REPLACER_H_
#define EXPR_REPLACER_H_
#pragma once
#include "ast/ast.h"
#include "ast/expr_substitution.h"
@ -56,4 +55,3 @@ expr_replacer * mk_default_expr_replacer(ast_manager & m, bool proofs_allowed);
*/
expr_replacer * mk_expr_simp_replacer(ast_manager & m, params_ref const & p = params_ref());
#endif

View file

@ -19,8 +19,7 @@ Revision History:
--*/
#ifndef EXPR_SAFE_REPLACE_H_
#define EXPR_SAFE_REPLACE_H_
#pragma once
#include "ast/ast.h"
@ -51,4 +50,3 @@ public:
bool empty() const { return m_subst.empty(); }
};
#endif /* EXPR_SAFE_REPLACE_H_ */

View file

@ -25,8 +25,7 @@ Revision History:
*/
#ifndef FACTOR_EQUIVS_H_
#define FACTOR_EQUIVS_H_
#pragma once
#include "util/union_find.h"
#include "ast/ast_util.h"
@ -187,4 +186,3 @@ void equiv_to_expr(expr_equiv_class &equiv, expr_ref_vector &out);
bool equiv_to_expr_full(expr_equiv_class &equiv, expr_ref_vector &out);
#endif

View file

@ -17,8 +17,7 @@ Author:
Notes:
--*/
#ifndef FACTOR_REWRITER_H_
#define FACTOR_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -75,4 +74,3 @@ public:
m_cfg(m) {}
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef FLOAT_REWRITER_H_
#define FLOAT_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -92,4 +91,3 @@ public:
br_status mk_bvwrap(expr * arg, expr_ref & result);
};
#endif

View file

@ -18,8 +18,7 @@ Revision History:
--*/
#ifndef FUNC_DECL_REPLACE_H_
#define FUNC_DECL_REPLACE_H_
#pragma once
#include "ast/ast.h"
@ -43,4 +42,3 @@ public:
bool empty() const { return m_subst.empty(); }
};
#endif /* FUNC_DECL_REPLACE_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef HOIST_REWRITER_H_
#define HOIST_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -77,4 +76,3 @@ public:
m_cfg(m, p) {}
};
#endif

View file

@ -16,12 +16,10 @@ Author:
Revision History:
--*/
#ifndef INJ_AXIOM_H_
#define INJ_AXIOM_H_
#pragma once
#include "ast/ast.h"
bool simplify_inj_axiom(ast_manager & m, quantifier * q, expr_ref & result);
#endif /* INJ_AXIOM_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef LABEL_REWRITER_H_
#define LABEL_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter_types.h"
@ -38,4 +37,3 @@ public:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef MAXIMIZE_AC_SHARING_H_
#define MAXIMIZE_AC_SHARING_H_
#pragma once
#include "util/hashtable.h"
#include "util/region.h"
@ -121,5 +120,4 @@ public:
void reset() { m_cfg.reset(); }
};
#endif /* MAXIMIZE_AC_SHARING_H_ */

View file

@ -14,8 +14,7 @@
Revision History:
--*/
#ifndef MK_EXTRACT_PROC_H_
#define MK_EXTRACT_PROC_H_
#pragma once
#include "ast/ast.h"
#include "ast/bv_decl_plugin.h"
class mk_extract_proc {
@ -31,4 +30,3 @@ public:
ast_manager & m() { return m_util.get_manager(); }
bv_util & bvutil() { return m_util; }
};
#endif /* MK_EXTRACT_PROC_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef MK_SIMPLIFIED_APP_H_
#define MK_SIMPLIFIED_APP_H_
#pragma once
#include "ast/ast.h"
#include "util/params.h"
@ -34,4 +33,3 @@ public:
void operator()(func_decl * decl, unsigned num, expr * const * args, expr_ref & result);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef PB2BV_REWRITER_H_
#define PB2BV_REWRITER_H_
#pragma once
#include "ast/pb_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -44,4 +43,3 @@ public:
void collect_statistics(statistics & st) const;
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef PB_REWRITER_H_
#define PB_REWRITER_H_
#pragma once
#include "ast/pb_decl_plugin.h"
#include "ast/rewriter/rewriter_types.h"
@ -62,4 +61,3 @@ public:
void dump_pb_rewrite(expr* fml);
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef PB_REWRITER_DEF_H_
#define PB_REWRITER_DEF_H_
#pragma once
#include "ast/rewriter/pb_rewriter.h"
@ -298,4 +297,3 @@ void pb_rewriter_util<PBU>::prune(typename PBU::args_t& args, typename PBU::nume
}
}
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef POLY_REWRITER_H_
#define POLY_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "util/obj_hashtable.h"
@ -176,4 +175,3 @@ public:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Revision History:
--*/
#ifndef PUSH_APP_ITE_H_
#define PUSH_APP_ITE_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter.h"
@ -70,5 +69,4 @@ public:
};
#endif /* PUSH_APP_ITE_H_ */

View file

@ -19,8 +19,7 @@ Revision History:
--*/
#ifndef QUANTIFIER_HOISTER_H_
#define QUANTIFIER_HOISTER_H_
#pragma once
#include "ast/ast.h"
@ -70,4 +69,3 @@ public:
};
#endif

View file

@ -22,8 +22,7 @@ Revision History:
--*/
#ifndef RECFUN_REPLACE_H_
#define RECFUN_REPLACE_H_
#pragma once
#include "ast/recfun_decl_plugin.h"
#include "ast/rewriter/expr_safe_replace.h"
@ -39,4 +38,3 @@ public:
expr_ref operator()(expr* e) override { expr_ref r(m); m_replace(e, r); return r; }
};
#endif /* RECFUN_REPLACE_H_ */

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef REWRITER_H_
#define REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter_types.h"
@ -407,4 +406,3 @@ public:
rewriter_tpl<beta_reducer_cfg>(m, false, m_cfg) {}
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef REWRITER_TYPES_H_
#define REWRITER_TYPES_H_
#pragma once
#include "util/z3_exception.h"
#include "util/common_msgs.h"
@ -49,4 +48,3 @@ public:
rewriter_exception(std::string && msg) : default_exception(std::move(msg)) {}
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef SEQ_REWRITER_H_
#define SEQ_REWRITER_H_
#pragma once
#include "ast/seq_decl_plugin.h"
#include "ast/ast_pp.h"
@ -341,4 +340,3 @@ public:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef TH_REWRITER_H_
#define TH_REWRITER_H_
#pragma once
#include "ast/ast.h"
#include "ast/rewriter/rewriter_types.h"
@ -72,4 +71,3 @@ public:
};
#endif

View file

@ -16,8 +16,7 @@ Author:
Notes:
--*/
#ifndef VAR_SUBST_H_
#define VAR_SUBST_H_
#pragma once
#include "ast/rewriter/rewriter.h"
#include "ast/used_vars.h"
@ -108,6 +107,5 @@ public:
sort*const* c_ptr() const { return m_sorts.c_ptr(); }
};
#endif