3
0
Fork 0
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:
Nikolaj Bjorner 2019-11-18 12:55:16 -08:00
parent 37382d22c4
commit 05ad90c976
2 changed files with 19 additions and 1 deletions

View file

@ -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);