mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
auto generate install_tactics procedure
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1622c9e9ef
commit
760b12c4cb
8 changed files with 93 additions and 4 deletions
|
@ -25,9 +25,11 @@ Revision History:
|
|||
#include"ast_ll_pp.h"
|
||||
#include"api_log_macros.h"
|
||||
#include"api_util.h"
|
||||
#include"install_tactics.h"
|
||||
#include"reg_decl_plugins.h"
|
||||
|
||||
// The install_tactics procedure is automatically generated
|
||||
void install_tactics(tactic_manager & ctx);
|
||||
|
||||
namespace api {
|
||||
|
||||
static void default_error_handler(Z3_context, Z3_error_code c) {
|
||||
|
|
|
@ -390,13 +390,17 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
// The install_tactics procedure is automatically generated for every
|
||||
// component that includes the cmd_context & tactic modules.
|
||||
void install_tactics(tactic_manager & ctx);
|
||||
|
||||
void install_core_tactic_cmds(cmd_context & ctx) {
|
||||
ctx.insert(alloc(declare_tactic_cmd));
|
||||
ctx.insert(alloc(get_user_tactics_cmd));
|
||||
ctx.insert(alloc(help_tactic_cmd));
|
||||
ctx.insert(alloc(check_sat_using_tactict_cmd));
|
||||
ctx.insert(alloc(apply_tactic_cmd));
|
||||
install_tactics(ctx);
|
||||
}
|
||||
|
||||
static tactic * mk_and_then(cmd_context & ctx, sexpr * n) {
|
||||
|
|
|
@ -25,4 +25,8 @@ class tactic;
|
|||
|
||||
tactic * mk_nlsat_tactic(ast_manager & m, params_ref const & p = params_ref());
|
||||
|
||||
/*
|
||||
ADD_TACTIC('nlsat', '(try to) solve goal using a nonlinear arithmetic solver.', 'mk_nlsat_tactic(m, p)')
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
|
|
@ -27,4 +27,9 @@ tactic * mk_sat_tactic(ast_manager & m, params_ref const & p = params_ref());
|
|||
|
||||
tactic * mk_sat_preprocessor_tactic(ast_manager & m, params_ref const & p = params_ref());
|
||||
|
||||
/*
|
||||
ADD_TACTIC('sat', '(try to) solve goal using a SAT solver.', 'mk_sat_tactic(m, p)')
|
||||
ADD_TACTIC('sat-preprocess', 'Apply SAT solver preprocessing procedures (bounded resolution, Boolean constant propagation, 2-SAT, subsumption, subsumption resolution).', 'mk_sat_preprocessor_tactic(m, p)')
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue