lean2/src/library/blast/trace.h

28 lines
805 B
C
Raw Normal View History

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
*/
#include "library/trace.h"
2015-11-18 20:59:53 +00:00
#include "library/blast/action_result.h"
#include "library/io_state_stream.h"
2015-11-18 20:59:53 +00:00
namespace lean {
namespace blast {
void trace_curr_state();
void trace_search(char const * msg);
2015-11-18 20:59:53 +00:00
void trace_action(char const * a);
void trace_curr_state_if(action_result r);
/** \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) {}
};
io_state_stream const & operator<<(io_state_stream const & out, ppb const & e);
2015-11-18 20:59:53 +00:00
}}