mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
performance optimization in theory_str::classify_ast_by_type
This commit is contained in:
parent
2c5569aa1f
commit
b3fddf4707
1 changed files with 2 additions and 2 deletions
|
@ -6597,10 +6597,10 @@ void theory_str::classify_ast_by_type(expr * node, std::map<expr*, int> & varMap
|
|||
expr * arg1Val = get_eqc_value(arg1, arg1HasEq);
|
||||
|
||||
int canskip = 0;
|
||||
if (arg0HasEq && arg0Val == m_strutil.mk_string("")) {
|
||||
if (arg0HasEq && m_strutil.get_string_constant_value(arg0Val).empty()) {
|
||||
canskip = 1;
|
||||
}
|
||||
if (canskip == 0 && arg1HasEq && arg1Val == m_strutil.mk_string("")) {
|
||||
if (canskip == 0 && arg1HasEq && m_strutil.get_string_constant_value(arg1Val).empty()) {
|
||||
canskip = 1;
|
||||
}
|
||||
if (canskip == 0 && concatMap.find(node) == concatMap.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue