3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-07 19:51:22 +00:00

remove calls to removed def constructor

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-02-16 10:13:00 -08:00
parent a703cf81b1
commit b27a2aa7fc
7 changed files with 10 additions and 13 deletions

View file

@ -536,9 +536,7 @@ namespace sls {
template<typename num_t>
void arith_base<num_t>::add_update_idiv(op_def const& od, num_t const& delta) {
num_t arg1 = value(od.m_arg1);
num_t arg2 = value(od.m_arg2);
if (arg2 != 0) {
if (arg2 > 0)
add_update(od.m_arg1, delta * arg2);

View file

@ -414,7 +414,7 @@ namespace sls {
return ev.val1.svalue;
}
case OP_SEQ_EXTRACT: {
expr* x, * offset, * len;
expr* x = nullptr, * offset = nullptr, * len = nullptr;
VERIFY(seq.str.is_extract(e, x, offset, len));
zstring r = strval0(x);
expr_ref offset_e = ctx.get_value(offset);
@ -449,7 +449,7 @@ namespace sls {
}
}
case OP_SEQ_REPLACE: {
expr* x, * y, * z;
expr* x = nullptr, * y = nullptr, * z = nullptr;
VERIFY(seq.str.is_replace(e, x, y, z));
zstring r = strval0(x);
zstring s = strval0(y);
@ -458,7 +458,7 @@ namespace sls {
return ev.val1.svalue;
}
case OP_SEQ_REPLACE_ALL: {
expr* x, * y, * z;
expr* x = nullptr, * y = nullptr, * z = nullptr;
VERIFY(seq.str.is_replace_all(e, x, y, z));
zstring s1 = strval0(x);
zstring s2 = strval0(y);