mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
fix build warnings
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
56827d5725
commit
d939c05e72
2 changed files with 12 additions and 10 deletions
|
@ -622,7 +622,7 @@ namespace datalog {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool string_to_uint64(const char * s, uint64_t & res) {
|
bool string_to_uint64(const char * s, uint64_t & res) {
|
||||||
#if _WINDOWS
|
#if 1
|
||||||
int converted = sscanf_s(s, "%I64u", &res);
|
int converted = sscanf_s(s, "%I64u", &res);
|
||||||
#else
|
#else
|
||||||
int converted = sscanf(s, "%llu", &res);
|
int converted = sscanf(s, "%llu", &res);
|
||||||
|
|
|
@ -10130,10 +10130,11 @@ namespace smt {
|
||||||
// increment LengthAttemptCount
|
// increment LengthAttemptCount
|
||||||
regex_inc_counter(regex_length_attempt_count, re);
|
regex_inc_counter(regex_length_attempt_count, re);
|
||||||
|
|
||||||
|
TRACE("str",
|
||||||
{
|
{
|
||||||
unsigned v = regex_get_counter(regex_length_attempt_count, re);
|
unsigned v = regex_get_counter(regex_length_attempt_count, re);
|
||||||
TRACE("str", tout << "length attempt count for " << mk_pp(re, m) << " is " << v << std::endl;);
|
tout << "length attempt count for " << mk_pp(re, m) << " is " << v << std::endl;
|
||||||
}
|
});
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -10541,11 +10542,12 @@ namespace smt {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRACE("str",
|
||||||
{
|
{
|
||||||
unsigned v = regex_get_counter(regex_length_attempt_count, aut.get_regex_term());
|
unsigned v = regex_get_counter(regex_length_attempt_count, aut.get_regex_term());
|
||||||
TRACE("str", tout << "length attempt count of " << mk_pp(aut.get_regex_term(), m) << " is " << v
|
tout << "length attempt count of " << mk_pp(aut.get_regex_term(), m) << " is " << v
|
||||||
<< ", threshold is " << m_params.m_RegexAutomata_LengthAttemptThreshold << std::endl;);
|
<< ", threshold is " << m_params.m_RegexAutomata_LengthAttemptThreshold << std::endl;
|
||||||
}
|
});
|
||||||
|
|
||||||
if (regex_get_counter(regex_length_attempt_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_LengthAttemptThreshold) {
|
if (regex_get_counter(regex_length_attempt_count, aut.get_regex_term()) >= m_params.m_RegexAutomata_LengthAttemptThreshold) {
|
||||||
unsigned intersectionDifficulty = estimate_automata_intersection_difficulty(aut_inter, aut.get_automaton());
|
unsigned intersectionDifficulty = estimate_automata_intersection_difficulty(aut_inter, aut.get_automaton());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue