mk_solver_from_tactic method

Z3_solver mk_solver_from_tactic(
  1. Z3_context c,
  2. Z3_tactic t
)

\brief Create a new solver that is implemented using the given tactic. The solver supports the commands #Z3_solver_push and #Z3_solver_pop, but it will always solve each #Z3_solver_check from scratch.

\remark User must use #Z3_solver_inc_ref and #Z3_solver_dec_ref to manage solver objects. Even if the context was created using #Z3_mk_context instead of #Z3_mk_context_rc.

\sa Z3_mk_solver \sa Z3_mk_simple_solver \sa Z3_mk_solver_for_logic

def_API('Z3_mk_solver_from_tactic', SOLVER, (_in(CONTEXT), _in(TACTIC)))

Implementation

Z3_solver mk_solver_from_tactic(
  Z3_context c,
  Z3_tactic t,
) {
  return _mk_solver_from_tactic(
    c,
    t,
  );
}