mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
misc warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ada873631e
commit
b723e1093b
4 changed files with 8 additions and 8 deletions
|
@ -1859,18 +1859,18 @@ namespace smt {
|
|||
axiomatized_terms.insert(ex);
|
||||
TRACE("str", tout << "instantiate str.from_code axiom for " << mk_pp(ex, m) << std::endl;);
|
||||
|
||||
expr * arg;
|
||||
u.str.is_from_code(ex, arg);
|
||||
expr * arg = nullptr;
|
||||
VERIFY(u.str.is_from_code(ex, arg));
|
||||
// (str.from_code N) == "" if N is not in the range [0, max_char].
|
||||
{
|
||||
expr_ref premise(m.mk_or(m_autil.mk_le(arg, mk_int(-1)), m_autil.mk_ge(arg, mk_int(u.max_char() + 1))), m);
|
||||
expr_ref premise(m.mk_or(m_autil.mk_le(arg, mk_int(-1)), m_autil.mk_ge(arg, mk_int(u.max_char() + 1))), m);
|
||||
expr_ref conclusion(ctx.mk_eq_atom(ex, mk_string("")), m);
|
||||
expr_ref axiom(rewrite_implication(premise, conclusion), m);
|
||||
assert_axiom_rw(axiom);
|
||||
}
|
||||
// len (str.from_code N) == 1 if N is in the range [0, max_char].
|
||||
{
|
||||
expr_ref premise(m.mk_and(m_autil.mk_ge(arg, mk_int(0)), m_autil.mk_le(arg, mk_int(u.max_char() + 1))), m);
|
||||
expr_ref premise(m.mk_and(m_autil.mk_ge(arg, mk_int(0)), m_autil.mk_le(arg, mk_int(u.max_char() + 1))), m);
|
||||
expr_ref conclusion(ctx.mk_eq_atom(mk_strlen(ex), mk_int(1)), m);
|
||||
expr_ref axiom(rewrite_implication(premise, conclusion), m);
|
||||
assert_axiom_rw(axiom);
|
||||
|
@ -1895,8 +1895,8 @@ namespace smt {
|
|||
axiomatized_terms.insert(ex);
|
||||
TRACE("str", tout << "instantiate str.to_code axiom for " << mk_pp(ex, m) << std::endl;);
|
||||
|
||||
expr * arg;
|
||||
u.str.is_to_code(ex, arg);
|
||||
expr * arg = nullptr;
|
||||
VERIFY(u.str.is_to_code(ex, arg));
|
||||
// (str.to_code S) == -1 if len(S) != 1.
|
||||
{
|
||||
expr_ref premise(m.mk_not(ctx.mk_eq_atom(mk_strlen(arg), mk_int(1))), m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue