2015-11-18 20:59:53 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
2015-12-09 03:37:06 +00:00
|
|
|
#include "library/trace.h"
|
2015-11-18 20:59:53 +00:00
|
|
|
#include "library/blast/action_result.h"
|
2015-11-19 22:58:25 +00:00
|
|
|
#include "library/io_state_stream.h"
|
2015-11-18 20:59:53 +00:00
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
namespace blast {
|
2015-11-19 03:12:29 +00:00
|
|
|
void trace_curr_state();
|
2015-12-09 03:37:06 +00:00
|
|
|
void trace_search(char const * msg);
|
2015-11-18 20:59:53 +00:00
|
|
|
void trace_action(char const * a);
|
2015-11-19 03:12:29 +00:00
|
|
|
void trace_curr_state_if(action_result r);
|
2015-11-19 22:58:25 +00:00
|
|
|
|
|
|
|
/** \brief Helper class for pretty printing blast expressions.
|
|
|
|
It uses state::to_kernel_expr to export a blast expression
|
|
|
|
into an expression that can be processed by the pretty printer */
|
|
|
|
struct ppb {
|
|
|
|
expr m_expr;
|
|
|
|
explicit ppb(expr const & e):m_expr(e) {}
|
|
|
|
};
|
|
|
|
|
2015-11-20 16:55:44 +00:00
|
|
|
io_state_stream const & operator<<(io_state_stream const & out, ppb const & e);
|
2015-11-18 20:59:53 +00:00
|
|
|
}}
|