mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
Formatting, mostly tabs
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
0381e4317a
commit
71912830f1
11 changed files with 37 additions and 37 deletions
|
@ -2848,7 +2848,7 @@ proof * ast_manager::mk_unit_resolution(unsigned num_proofs, proof * const * pro
|
||||||
SASSERT(is_or(f1));
|
SASSERT(is_or(f1));
|
||||||
app * cls = to_app(f1);
|
app * cls = to_app(f1);
|
||||||
unsigned cls_sz = cls->get_num_args();
|
unsigned cls_sz = cls->get_num_args();
|
||||||
CTRACE("cunit_bug", !(num_proofs == cls_sz || (num_proofs == cls_sz + 1 && is_false(new_fact))),
|
CTRACE("cunit_bug", !(num_proofs == cls_sz || (num_proofs == cls_sz + 1 && is_false(new_fact))),
|
||||||
for (unsigned i = 0; i < num_proofs; i++) tout << mk_pp(get_fact(proofs[i]), *this) << "\n";
|
for (unsigned i = 0; i < num_proofs; i++) tout << mk_pp(get_fact(proofs[i]), *this) << "\n";
|
||||||
tout << "===>\n";
|
tout << "===>\n";
|
||||||
tout << mk_pp(new_fact, *this) << "\n";);
|
tout << mk_pp(new_fact, *this) << "\n";);
|
||||||
|
|
|
@ -1003,7 +1003,7 @@ public:
|
||||||
visit_sort(d->get_domain(i), true);
|
visit_sort(d->get_domain(i), true);
|
||||||
}
|
}
|
||||||
m_out << ")";
|
m_out << ")";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ void bv_decl_plugin::finalize() {
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
ptr_vector<func_decl> & ds = *it;
|
ptr_vector<func_decl> & ds = *it;
|
||||||
DEC_REF(ds);
|
DEC_REF(ds);
|
||||||
}
|
}
|
||||||
DEC_REF(m_mkbv);
|
DEC_REF(m_mkbv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -157,13 +157,13 @@ void bv_decl_plugin::mk_bv_sort(unsigned bv_size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
inline sort * bv_decl_plugin::get_bv_sort(unsigned bv_size) {
|
inline sort * bv_decl_plugin::get_bv_sort(unsigned bv_size) {
|
||||||
if (bv_size < (1 << 12)) {
|
if (bv_size < (1 << 12)) {
|
||||||
mk_bv_sort(bv_size);
|
mk_bv_sort(bv_size);
|
||||||
return m_bv_sorts[bv_size];
|
return m_bv_sorts[bv_size];
|
||||||
}
|
}
|
||||||
parameter p(bv_size);
|
parameter p(bv_size);
|
||||||
sort_size sz(sort_size::mk_very_big());
|
sort_size sz(sort_size::mk_very_big());
|
||||||
return m_manager->mk_sort(symbol("bv"), sort_info(m_family_id, BV_SORT, sz, 1, &p));
|
return m_manager->mk_sort(symbol("bv"), sort_info(m_family_id, BV_SORT, sz, 1, &p));
|
||||||
}
|
}
|
||||||
|
|
||||||
sort * bv_decl_plugin::mk_sort(decl_kind k, unsigned num_parameters, parameter const * parameters) {
|
sort * bv_decl_plugin::mk_sort(decl_kind k, unsigned num_parameters, parameter const * parameters) {
|
||||||
|
|
|
@ -919,9 +919,9 @@ void datatype_util::display_datatype(sort *s0, std::ostream& strm) {
|
||||||
todo.push_back(s0);
|
todo.push_back(s0);
|
||||||
mark.mark(s0, true);
|
mark.mark(s0, true);
|
||||||
while (!todo.empty()) {
|
while (!todo.empty()) {
|
||||||
sort* s = todo.back();
|
sort* s = todo.back();
|
||||||
todo.pop_back();
|
todo.pop_back();
|
||||||
strm << s->get_name() << " =\n";
|
strm << s->get_name() << " =\n";
|
||||||
|
|
||||||
ptr_vector<func_decl> const * cnstrs = get_datatype_constructors(s);
|
ptr_vector<func_decl> const * cnstrs = get_datatype_constructors(s);
|
||||||
for (unsigned i = 0; i < cnstrs->size(); ++i) {
|
for (unsigned i = 0; i < cnstrs->size(); ++i) {
|
||||||
|
@ -931,14 +931,14 @@ void datatype_util::display_datatype(sort *s0, std::ostream& strm) {
|
||||||
ptr_vector<func_decl> const * accs = get_constructor_accessors(cns);
|
ptr_vector<func_decl> const * accs = get_constructor_accessors(cns);
|
||||||
for (unsigned j = 0; j < accs->size(); ++j) {
|
for (unsigned j = 0; j < accs->size(); ++j) {
|
||||||
func_decl* acc = (*accs)[j];
|
func_decl* acc = (*accs)[j];
|
||||||
sort* s1 = acc->get_range();
|
sort* s1 = acc->get_range();
|
||||||
strm << "(" << acc->get_name() << ": " << s1->get_name() << ") ";
|
strm << "(" << acc->get_name() << ": " << s1->get_name() << ") ";
|
||||||
if (is_datatype(s1) && are_siblings(s1, s0) && !mark.is_marked(s1)) {
|
if (is_datatype(s1) && are_siblings(s1, s0) && !mark.is_marked(s1)) {
|
||||||
mark.mark(s1, true);
|
mark.mark(s1, true);
|
||||||
todo.push_back(s1);
|
todo.push_back(s1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
strm << "\n";
|
strm << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ void distribute_forall::operator()(expr * f, expr_ref & result) {
|
||||||
|
|
||||||
while (!m_todo.empty()) {
|
while (!m_todo.empty()) {
|
||||||
expr * e = m_todo.back();
|
expr * e = m_todo.back();
|
||||||
if (visit_children(e)) {
|
if (visit_children(e)) {
|
||||||
m_todo.pop_back();
|
m_todo.pop_back();
|
||||||
reduce1(e);
|
reduce1(e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,7 +255,7 @@ protected:
|
||||||
s == m_print_success || s == m_print_warning || s == m_expand_definitions ||
|
s == m_print_success || s == m_print_warning || s == m_expand_definitions ||
|
||||||
s == m_interactive_mode || s == m_produce_proofs || s == m_produce_unsat_cores ||
|
s == m_interactive_mode || s == m_produce_proofs || s == m_produce_unsat_cores ||
|
||||||
s == m_produce_models || s == m_produce_assignments || s == m_produce_interpolants ||
|
s == m_produce_models || s == m_produce_assignments || s == m_produce_interpolants ||
|
||||||
s == m_regular_output_channel || s == m_diagnostic_output_channel ||
|
s == m_regular_output_channel || s == m_diagnostic_output_channel ||
|
||||||
s == m_random_seed || s == m_verbosity || s == m_global_decls;
|
s == m_random_seed || s == m_verbosity || s == m_global_decls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -142,7 +142,7 @@ namespace datalog {
|
||||||
steps.push_back(step());
|
steps.push_back(step());
|
||||||
obj_map<proof, unsigned> index;
|
obj_map<proof, unsigned> index;
|
||||||
index.insert(m_proof, 0);
|
index.insert(m_proof, 0);
|
||||||
|
|
||||||
for (unsigned j = 0; j < rules.size(); ++j) {
|
for (unsigned j = 0; j < rules.size(); ++j) {
|
||||||
proof* p = rules[j];
|
proof* p = rules[j];
|
||||||
proof_ref_vector premises(m);
|
proof_ref_vector premises(m);
|
||||||
|
|
|
@ -963,12 +963,12 @@ namespace datalog {
|
||||||
// TODO: what?
|
// TODO: what?
|
||||||
if(get_engine() != DUALITY_ENGINE) {
|
if(get_engine() != DUALITY_ENGINE) {
|
||||||
new_query();
|
new_query();
|
||||||
rule_set::iterator it = m_rule_set.begin(), end = m_rule_set.end();
|
rule_set::iterator it = m_rule_set.begin(), end = m_rule_set.end();
|
||||||
rule_ref r(m_rule_manager);
|
rule_ref r(m_rule_manager);
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
r = *it;
|
r = *it;
|
||||||
check_rule(r);
|
check_rule(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
m_mc = mk_skip_model_converter();
|
m_mc = mk_skip_model_converter();
|
||||||
|
@ -985,10 +985,10 @@ namespace datalog {
|
||||||
flush_add_rules();
|
flush_add_rules();
|
||||||
break;
|
break;
|
||||||
case DUALITY_ENGINE:
|
case DUALITY_ENGINE:
|
||||||
// this lets us use duality with SAS 2013 abstraction
|
// this lets us use duality with SAS 2013 abstraction
|
||||||
if(quantify_arrays())
|
if(quantify_arrays())
|
||||||
flush_add_rules();
|
flush_add_rules();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
@ -1109,11 +1109,11 @@ namespace datalog {
|
||||||
|
|
||||||
void context::get_raw_rule_formulas(expr_ref_vector& rules, svector<symbol>& names, vector<unsigned> &bounds){
|
void context::get_raw_rule_formulas(expr_ref_vector& rules, svector<symbol>& names, vector<unsigned> &bounds){
|
||||||
for (unsigned i = 0; i < m_rule_fmls.size(); ++i) {
|
for (unsigned i = 0; i < m_rule_fmls.size(); ++i) {
|
||||||
expr_ref r = bind_variables(m_rule_fmls[i].get(), true);
|
expr_ref r = bind_variables(m_rule_fmls[i].get(), true);
|
||||||
rules.push_back(r.get());
|
rules.push_back(r.get());
|
||||||
// rules.push_back(m_rule_fmls[i].get());
|
// rules.push_back(m_rule_fmls[i].get());
|
||||||
names.push_back(m_rule_names[i]);
|
names.push_back(m_rule_names[i]);
|
||||||
bounds.push_back(m_rule_bounds[i]);
|
bounds.push_back(m_rule_bounds[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ struct dl_context {
|
||||||
m_trail.push(push_back_vector<dl_context, svector<symbol> >(m_collected_cmds->m_names));
|
m_trail.push(push_back_vector<dl_context, svector<symbol> >(m_collected_cmds->m_names));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_context->add_rule(rule, name, bound);
|
m_context->add_rule(rule, name, bound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,11 +260,11 @@ public:
|
||||||
print_certificate(ctx);
|
print_certificate(ctx);
|
||||||
break;
|
break;
|
||||||
case l_undef:
|
case l_undef:
|
||||||
if(dlctx.get_status() == datalog::BOUNDED){
|
if(dlctx.get_status() == datalog::BOUNDED){
|
||||||
ctx.regular_stream() << "bounded\n";
|
ctx.regular_stream() << "bounded\n";
|
||||||
print_certificate(ctx);
|
print_certificate(ctx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ctx.regular_stream() << "unknown\n";
|
ctx.regular_stream() << "unknown\n";
|
||||||
switch(dlctx.get_status()) {
|
switch(dlctx.get_status()) {
|
||||||
case datalog::INPUT_ERROR:
|
case datalog::INPUT_ERROR:
|
||||||
|
|
|
@ -219,7 +219,7 @@ namespace datalog {
|
||||||
|
|
||||||
class mk_bit_blast::impl {
|
class mk_bit_blast::impl {
|
||||||
|
|
||||||
context & m_context;
|
context & m_context;
|
||||||
ast_manager & m;
|
ast_manager & m;
|
||||||
params_ref m_params;
|
params_ref m_params;
|
||||||
mk_interp_tail_simplifier m_simplifier;
|
mk_interp_tail_simplifier m_simplifier;
|
||||||
|
|
|
@ -1531,7 +1531,7 @@ public:
|
||||||
catch (aig_exception ex) {
|
catch (aig_exception ex) {
|
||||||
dec_ref(r);
|
dec_ref(r);
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
dec_ref_result(r);
|
dec_ref_result(r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue