Ejemplo n.º 1
0
 unsigned context::display_lemma_as_smt_problem(unsigned num_antecedents, literal const * antecedents, literal consequent, symbol const& logic) const {
     std::stringstream strm;
     strm << "lemma_" << (++m_lemma_id) << ".smt2";
     std::ofstream out(strm.str());
     display_lemma_as_smt_problem(out, num_antecedents, antecedents, consequent, logic);
     out.close();
     return m_lemma_id;
 }
Ejemplo n.º 2
0
    void context::display_lemma_as_smt_problem(unsigned num_antecedents, literal const * antecedents, literal consequent, const char * logic) const {
        char buffer[BUFFER_SZ];
#ifdef _WINDOWS
        sprintf_s(buffer, BUFFER_SZ, "lemma_%d.smt2", g_lemma_id);
#else
        sprintf(buffer, "lemma_%d.smt2", g_lemma_id);
#endif
        std::ofstream out(buffer);
        display_lemma_as_smt_problem(out, num_antecedents, antecedents, consequent, logic);
        out.close();
        g_lemma_id++;
    }