Beispiel #1
0
static tactic * mk_bounded_tactic(ast_manager & m) {
    return and_then(fail_if(mk_is_unbounded_probe()),
                    or_else(try_for(mk_no_cut_smt_tactic(100), 5000),
                            try_for(mk_no_cut_no_relevancy_smt_tactic(200), 5000),
                            try_for(mk_no_cut_smt_tactic(300), 15000)
                            ),
                    mk_fail_if_undecided_tactic());
}
Beispiel #2
0
static tactic * mk_lia2sat_tactic(ast_manager & m) {
    params_ref pb2bv_p;
    pb2bv_p.set_bool("ite_extra", true);    
    pb2bv_p.set_uint("pb2bv_all_clauses_limit", 8);
    
    return and_then(fail_if(mk_is_unbounded_probe()),
                    fail_if(mk_produce_proofs_probe()),
                    fail_if(mk_produce_unsat_cores_probe()),
                    mk_propagate_ineqs_tactic(m),
                    mk_normalize_bounds_tactic(m),
                    mk_lia2pb_tactic(m),
                    using_params(mk_pb2bv_tactic(m), pb2bv_p),
                    fail_if_not(mk_is_qfbv_probe()),                    
                    mk_bv2sat_tactic(m));
}
Beispiel #3
0
// Try to find a model for an unbounded ILP problem.
// Fails if the problem is no ILP.
static tactic * mk_ilp_model_finder_tactic(ast_manager & m) {
    params_ref add_bounds_p1;
    add_bounds_p1.set_rat(":add-bound-lower", rational(-16));
    add_bounds_p1.set_rat(":add-bound-upper", rational(15));
    params_ref add_bounds_p2;
    add_bounds_p2.set_rat(":add-bound-lower", rational(-32));
    add_bounds_p2.set_rat(":add-bound-upper", rational(31));

    return and_then(fail_if_not(mk_and(mk_is_ilp_probe(), mk_is_unbounded_probe())),
                    fail_if(mk_produce_proofs_probe()),
                    fail_if(mk_produce_unsat_cores_probe()),
                    mk_propagate_ineqs_tactic(m),
                    or_else(try_for(mk_mip_tactic(m), 5000),
                            try_for(mk_no_cut_smt_tactic(100), 2000),
                            and_then(using_params(mk_add_bounds_tactic(m), add_bounds_p1),
                                     try_for(mk_lia2sat_tactic(m), 5000)),
                            try_for(mk_no_cut_smt_tactic(200), 5000),
                            and_then(using_params(mk_add_bounds_tactic(m), add_bounds_p2),
                                     try_for(mk_lia2sat_tactic(m), 10000)),
                            mk_mip_tactic(m)),
                    mk_fail_if_undecided_tactic());
}
Beispiel #4
0
probe * mk_quasi_pb_probe() {
    return mk_and(mk_not(mk_is_unbounded_probe()),
                  alloc(quasi_pb_probe));
}