3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-12 10:14:42 +00:00

avoid reset_error in dec_ref in bv_val #1443. Add BSD required template instance #1444

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-01-07 15:51:45 -08:00
parent 711023d557
commit 482738bc8a
5 changed files with 15 additions and 8 deletions

View file

@ -73,7 +73,7 @@ extern "C" {
('P' == *m) ||
('+' == *m))))) {
SET_ERROR_CODE(Z3_PARSER_ERROR);
return 0;
RETURN_Z3(0);
}
++m;
}
@ -235,7 +235,7 @@ extern "C" {
expr* e = to_expr(a);
if (!e) {
SET_ERROR_CODE(Z3_INVALID_ARG);
return "";
RETURN_Z3("");
}
rational r;
arith_util & u = mk_c(c)->autil();