mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fixed more problems in the new param framework
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
d634c945bf
commit
6d7d205e13
30 changed files with 185 additions and 168 deletions
|
@ -72,9 +72,9 @@ void tst_dl_context() {
|
|||
|
||||
params_ref params;
|
||||
for(unsigned rel_index=0; rel_index<rel_cnt; rel_index++) {
|
||||
params.set_sym(":default-relation", relations[rel_index]);
|
||||
params.set_sym("default_relation", relations[rel_index]);
|
||||
for(int eager_checking=1; eager_checking>=0; eager_checking--) {
|
||||
params.set_bool(":eager-emptiness-checking", eager_checking!=0);
|
||||
params.set_bool("eager_emptiness_checking", eager_checking!=0);
|
||||
|
||||
std::cerr << "Testing " << relations[rel_index] << "\n";
|
||||
std::cerr << "Eager emptiness checking " << (eager_checking!=0 ? "on" : "off") << "\n";
|
||||
|
|
|
@ -343,7 +343,7 @@ void tst_dl_product_relation() {
|
|||
|
||||
test_functional_columns(fparams, params);
|
||||
|
||||
params.set_sym(":default-relation", symbol("tr_sparse"));
|
||||
params.set_sym("default_relation", symbol("tr_sparse"));
|
||||
test_finite_product_relation(fparams, params);
|
||||
|
||||
}
|
||||
|
|
|
@ -50,7 +50,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);
|
||||
params.set_bool(":magic-sets-for-queries", use_magic_sets);
|
||||
params.set_bool("magic_sets_for_queries", use_magic_sets);
|
||||
ctx_q.updt_params(params);
|
||||
{
|
||||
parser* p = parser::create(ctx_q,m);
|
||||
|
@ -125,7 +125,7 @@ void dl_query_test(ast_manager & m, smt_params & fparams, params_ref& params,
|
|||
}
|
||||
|
||||
void dl_query_test_wpa(smt_params & fparams, params_ref& params) {
|
||||
params.set_bool(":magic-sets-for-queries", true);
|
||||
params.set_bool("magic_sets_for_queries", true);
|
||||
ast_manager m;
|
||||
reg_decl_plugins(m);
|
||||
arith_util arith(m);
|
||||
|
@ -185,8 +185,8 @@ void dl_query_test_wpa(smt_params & fparams, params_ref& params) {
|
|||
void tst_dl_query() {
|
||||
smt_params fparams;
|
||||
params_ref params;
|
||||
params.set_sym(":default-table", symbol("sparse"));
|
||||
params.set_sym(":default-relation", symbol("tr_sparse"));
|
||||
params.set_sym("default_table", symbol("sparse"));
|
||||
params.set_sym("default_relation", symbol("tr_sparse"));
|
||||
|
||||
//params.m_dl_default_table = symbol("hashtable");
|
||||
//params.m_dl_default_relation = symbol("tr_hashtable");
|
||||
|
@ -212,9 +212,9 @@ void tst_dl_query() {
|
|||
ctx_base.dl_saturate();
|
||||
|
||||
for(unsigned use_restarts=0; use_restarts<=1; use_restarts++) {
|
||||
params.set_uint(":initial-restart-timeout", use_restarts ? 100 : 0);
|
||||
params.set_uint("initial_restart_timeout", use_restarts ? 100 : 0);
|
||||
for(unsigned use_similar=0; use_similar<=1; use_similar++) {
|
||||
params.set_uint(":similarity-compressor", use_similar != 0);
|
||||
params.set_uint("similarity_compressor", use_similar != 0);
|
||||
|
||||
for(unsigned use_magic_sets=0; use_magic_sets<=1; use_magic_sets++) {
|
||||
stopwatch watch;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue