mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 05:18:44 +00:00
some debugging stuff
This commit is contained in:
parent
ea127c8ab9
commit
d8b31773b8
|
@ -190,6 +190,16 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
void test_secondary(const std::vector<ast> &cnsts,
|
||||
const std::vector<int> &parents,
|
||||
std::vector<ast> &interps
|
||||
){
|
||||
int num = cnsts.size();
|
||||
iz3secondary *sp = iz3foci::create(this,num,(int *)(parents.empty()?0:&parents[0]));
|
||||
int res = sp->interpolate(cnsts, interps);
|
||||
if(res != 0)
|
||||
throw "secondary failed";
|
||||
}
|
||||
|
||||
void proof_to_interpolant(z3pf proof,
|
||||
const std::vector<ast> &cnsts,
|
||||
|
@ -198,7 +208,10 @@ public:
|
|||
const std::vector<ast> &theory,
|
||||
interpolation_options_struct *options = 0
|
||||
){
|
||||
|
||||
#if 0
|
||||
test_secondary(cnsts,parents,interps);
|
||||
return;
|
||||
#endif
|
||||
profiling::timer_start("Interpolation prep");
|
||||
|
||||
// get rid of frames not used in proof
|
||||
|
|
|
@ -39,6 +39,7 @@ using namespace stl_ext;
|
|||
|
||||
|
||||
static int lemma_count = 0;
|
||||
static int nll_lemma_count = 0;
|
||||
#define SHOW_LEMMA_COUNT -1
|
||||
|
||||
// One half of a resolution. We need this to distinguish
|
||||
|
@ -764,7 +765,8 @@ public:
|
|||
|
||||
|
||||
#if 1
|
||||
// std::cout << "lemma: " << ++lemma_count << "\n";
|
||||
++lemma_count;
|
||||
// std::cout << "lemma: " << lemma_count << "\n";
|
||||
if(lemma_count == SHOW_LEMMA_COUNT){
|
||||
for(unsigned i = 0; i < lits.size(); i++)
|
||||
show_lit(lits[i]);
|
||||
|
@ -1337,7 +1339,7 @@ public:
|
|||
return res;
|
||||
}
|
||||
|
||||
// #define NEW_EXTRACT_TH_LEMMA
|
||||
//#define NEW_EXTRACT_TH_LEMMA
|
||||
|
||||
void get_local_hyps(const ast &proof, std::set<ast> &res){
|
||||
std::set<ast> hyps = get_hyps(proof);
|
||||
|
@ -1372,7 +1374,7 @@ public:
|
|||
}
|
||||
}
|
||||
#ifdef NEW_EXTRACT_TH_LEMMA
|
||||
bool lemma_nll = nargs > 1;
|
||||
bool lemma_nll = nprems > 1;
|
||||
if(nll && !lemma_nll){
|
||||
lemma_nll = false;
|
||||
// std::cout << "lemma count = " << nll_lemma_count << "\n";
|
||||
|
@ -1394,7 +1396,7 @@ public:
|
|||
try {
|
||||
res = extract_th_lemma_common(lits,nll,lemma_nll);
|
||||
}
|
||||
#if 0
|
||||
#if 1
|
||||
catch (const invalid_lemma &) {
|
||||
std::cout << "\n\nlemma: " << my_count;
|
||||
std::cout << "\n\nproof node: \n";
|
||||
|
|
Loading…
Reference in a new issue