3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-02 09:20:22 +00:00

fix a few warnings & simplify debug.h header

This commit is contained in:
Nuno Lopes 2020-05-26 13:49:13 +01:00
parent a97bc65af4
commit d8cea7c8d5
6 changed files with 24 additions and 56 deletions

View file

@ -7045,10 +7045,10 @@ namespace smt {
void theory_str::check_consistency_prefix(expr * e, bool is_true) {
context & ctx = get_context();
ast_manager & m = get_manager();
expr * needle;
expr * haystack;
expr * needle = nullptr;
expr * haystack = nullptr;
u.str.is_prefix(e, needle, haystack);
VERIFY(u.str.is_prefix(e, needle, haystack));
TRACE("str", tout << "check consistency of prefix predicate: " << mk_pp(needle, m) << " prefixof " << mk_pp(haystack, m) << std::endl;);
zstring needleStringConstant;
@ -7072,10 +7072,10 @@ namespace smt {
void theory_str::check_consistency_suffix(expr * e, bool is_true) {
context & ctx = get_context();
ast_manager & m = get_manager();
expr * needle;
expr * haystack;
expr * needle = nullptr;
expr * haystack = nullptr;
u.str.is_suffix(e, needle, haystack);
VERIFY(u.str.is_suffix(e, needle, haystack));
TRACE("str", tout << "check consistency of suffix predicate: " << mk_pp(needle, m) << " suffixof " << mk_pp(haystack, m) << std::endl;);
zstring needleStringConstant;
@ -7099,10 +7099,10 @@ namespace smt {
void theory_str::check_consistency_contains(expr * e, bool is_true) {
context & ctx = get_context();
ast_manager & m = get_manager();
expr * needle;
expr * haystack;
expr * needle = nullptr;
expr * haystack = nullptr;
u.str.is_contains(e, haystack, needle); // first string contains second one
VERIFY(u.str.is_contains(e, haystack, needle)); // first string contains second one
TRACE("str", tout << "check consistency of contains predicate: " << mk_pp(haystack, m) << " contains " << mk_pp(needle, m) << std::endl;);
zstring needleStringConstant;