3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

Disabled superfluous wellformedness check and fixed type checking in basic_decl_plugin::join

This commit is contained in:
Christoph M. Wintersteiger 2015-07-31 11:20:01 +01:00
parent d94e12104d
commit bea8744f7d
2 changed files with 7 additions and 3 deletions

View file

@ -1018,15 +1018,19 @@ func_decl * basic_decl_plugin::mk_ite_decl(sort * s) {
sort* basic_decl_plugin::join(sort* s1, sort* s2) {
if (s1 == s2) return s1;
if (s1->get_family_id() == m_manager->m_arith_family_id &&
if (s1->get_family_id() == m_manager->m_arith_family_id &&
s2->get_family_id() == m_manager->m_arith_family_id) {
if (s1->get_decl_kind() == REAL_SORT) {
return s1;
}
return s2;
}
return s2;
std::ostringstream buffer;
buffer << "Sorts " << mk_pp(s1, *m_manager) << " and " << mk_pp(s2, *m_manager) << " are incompatible";
throw ast_exception(buffer.str().c_str());
}
func_decl * basic_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, parameter const * parameters,
unsigned arity, sort * const * domain, sort * range) {
switch (static_cast<basic_op_kind>(k)) {

View file

@ -33,7 +33,7 @@ context_params::context_params() {
m_trace = false;
m_debug_ref_count = false;
m_smtlib2_compliant = false;
m_well_sorted_check = true;
m_well_sorted_check = false;
m_timeout = UINT_MAX;
updt_params();
}