mirror of
https://github.com/Z3Prover/z3
synced 2025-08-06 19:21:22 +00:00
fixing unit tests
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1cd1a42618
commit
aeb3857391
8 changed files with 18 additions and 16 deletions
|
@ -49,7 +49,7 @@ void dl_query_test(ast_manager & m, smt_params & fparams, params_ref& params,
|
|||
|
||||
dl_decl_util decl_util(m);
|
||||
|
||||
context ctx_q(m, fparams);
|
||||
context ctx_q(m, fparams);
|
||||
params.set_bool(":magic-sets-for-queries", use_magic_sets);
|
||||
ctx_q.updt_params(params);
|
||||
{
|
||||
|
@ -57,7 +57,7 @@ void dl_query_test(ast_manager & m, smt_params & fparams, params_ref& params,
|
|||
TRUSTME( p->parse_file(problem_file) );
|
||||
dealloc(p);
|
||||
}
|
||||
relation_manager & rel_mgr_q = ctx_b.get_rmanager();
|
||||
relation_manager & rel_mgr_q = ctx_b.get_rel_context().get_rmanager();
|
||||
|
||||
decl_set out_preds = ctx_b.get_output_predicates();
|
||||
decl_set::iterator it = out_preds.begin();
|
||||
|
@ -68,10 +68,10 @@ void dl_query_test(ast_manager & m, smt_params & fparams, params_ref& params,
|
|||
func_decl * pred_q = ctx_q.try_get_predicate_decl(symbol(pred_b->get_name().bare_str()));
|
||||
SASSERT(pred_q);
|
||||
|
||||
relation_base & rel_b = ctx_b.get_relation(pred_b);
|
||||
relation_base & rel_b = ctx_b.get_rel_context().get_relation(pred_b);
|
||||
|
||||
relation_signature sig_b = rel_b.get_signature();
|
||||
relation_signature sig_q = ctx_q.get_relation(pred_q).get_signature();
|
||||
relation_signature sig_q = ctx_q.get_rel_context().get_relation(pred_q).get_signature();
|
||||
SASSERT(sig_b.size()==sig_q.size());
|
||||
|
||||
std::cerr << "Queries on random facts...\n";
|
||||
|
@ -209,7 +209,7 @@ void tst_dl_query() {
|
|||
TRUSTME( p->parse_file(problem_file) );
|
||||
dealloc(p);
|
||||
}
|
||||
ctx_base.dl_saturate();
|
||||
ctx_base.get_rel_context().saturate();
|
||||
|
||||
for(unsigned use_restarts=0; use_restarts<=1; use_restarts++) {
|
||||
params.set_uint(":initial-restart-timeout", use_restarts ? 100 : 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue