mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
remove assertion that gets violated on exception path (declaration of datatypes are not getting removed)
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b96dacfff2
commit
a9ebda105c
|
@ -1138,8 +1138,11 @@ static void parse_example() {
|
||||||
decls.push_back(c.function("a", 0, 0, B));
|
decls.push_back(c.function("a", 0, 0, B));
|
||||||
expr a = c.parse_string("(assert a)", sorts, decls);
|
expr a = c.parse_string("(assert a)", sorts, decls);
|
||||||
std::cout << a << "\n";
|
std::cout << a << "\n";
|
||||||
|
|
||||||
|
expr b = c.parse_string("(benchmark tst :extrafuns ((x Int) (y Int)) :formula (> x y) :formula (> x 0))");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -853,7 +853,6 @@ pdecl_manager::~pdecl_manager() {
|
||||||
dec_ref(m_list);
|
dec_ref(m_list);
|
||||||
reset_sort_info();
|
reset_sort_info();
|
||||||
SASSERT(m_sort2psort.empty());
|
SASSERT(m_sort2psort.empty());
|
||||||
SASSERT(m_table.empty());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
psort * pdecl_manager::mk_psort_cnst(sort * s) {
|
psort * pdecl_manager::mk_psort_cnst(sort * s) {
|
||||||
|
@ -865,6 +864,8 @@ psort * pdecl_manager::mk_psort_cnst(sort * s) {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static unsigned r_count = 0;
|
||||||
|
|
||||||
psort * pdecl_manager::register_psort(psort * n) {
|
psort * pdecl_manager::register_psort(psort * n) {
|
||||||
TRACE("register_psort", tout << "registering psort...\n"; n->display(tout); tout << "\n";);
|
TRACE("register_psort", tout << "registering psort...\n"; n->display(tout); tout << "\n";);
|
||||||
psort * r = m_table.insert_if_not_there(n);
|
psort * r = m_table.insert_if_not_there(n);
|
||||||
|
|
Loading…
Reference in a new issue