feat(library/blast/blast): add extra constructor

This commit is contained in:
Leonardo de Moura 2015-11-05 16:07:11 -08:00
parent 980eb95e0c
commit 45c02cb65c
2 changed files with 9 additions and 0 deletions

View file

@ -604,6 +604,14 @@ tmp_type_context * blastenv::mk_tmp_type_context() {
return r; return r;
} }
blast_tmp_type_context::blast_tmp_type_context(unsigned num_umeta, unsigned num_emeta) {
lean_assert(g_blastenv);
m_ctx = g_blastenv->mk_tmp_type_context();
m_ctx->clear();
m_ctx->set_next_uvar_idx(num_umeta);
m_ctx->set_next_mvar_idx(num_emeta);
}
blast_tmp_type_context::blast_tmp_type_context() { blast_tmp_type_context::blast_tmp_type_context() {
lean_assert(g_blastenv); lean_assert(g_blastenv);
m_ctx = g_blastenv->mk_tmp_type_context(); m_ctx = g_blastenv->mk_tmp_type_context();

View file

@ -86,6 +86,7 @@ public:
class blast_tmp_type_context { class blast_tmp_type_context {
tmp_type_context * m_ctx; tmp_type_context * m_ctx;
public: public:
blast_tmp_type_context(unsigned num_umeta, unsigned num_emeta);
blast_tmp_type_context(); blast_tmp_type_context();
~blast_tmp_type_context(); ~blast_tmp_type_context();