mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix for null symbol #2712
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
37382d22c4
commit
05ad90c976
2 changed files with 19 additions and 1 deletions
|
@ -141,6 +141,10 @@ bool lt(symbol const & s1, symbol const & s2) {
|
|||
SASSERT(!s1.is_numerical());
|
||||
return false;
|
||||
}
|
||||
if (!s1.bare_str())
|
||||
return true;
|
||||
if (!s2.bare_str())
|
||||
return false;
|
||||
SASSERT(!s1.is_numerical() && !s2.is_numerical());
|
||||
auto cmp = strcmp(s1.bare_str(), s2.bare_str());
|
||||
SASSERT(cmp != 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue