mirror of
https://github.com/Z3Prover/z3
synced 2025-05-10 09:15:47 +00:00
merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4aa1e60daa
commit
6d17c656bd
4 changed files with 14 additions and 24 deletions
|
@ -36,14 +36,11 @@ namespace smt {
|
|||
if (a == UINT_MAX || b == UINT_MAX) {
|
||||
return UINT_MAX;
|
||||
}
|
||||
if (a == 0 || b == 0) {
|
||||
return 0;
|
||||
}
|
||||
unsigned result = a * b;
|
||||
if (result < a || result < b) {
|
||||
uint64_t result = static_cast<uint64_t>(a) * static_cast<uint64_t>(b);
|
||||
if (result > UINT_MAX) {
|
||||
return UINT_MAX;
|
||||
}
|
||||
return result;
|
||||
return static_cast<unsigned>(result);
|
||||
}
|
||||
|
||||
// Returns false if we need to give up solving, e.g. because we found symbolic expressions in an automaton.
|
||||
|
@ -207,7 +204,7 @@ namespace smt {
|
|||
continue;
|
||||
} else {
|
||||
// fixed-length model construction handles path constraints on our behalf, and with a better reduction
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// no automata available, or else all bounds assumptions are invalid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue