3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 16:38:45 +00:00

Fix setup_relevancy for relevancy-dependent case split strategies (#7662)

This commit is contained in:
Can Cebeci 2025-05-27 17:52:35 +02:00 committed by GitHub
parent 80c553d24a
commit b44c897a59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -834,6 +834,13 @@ namespace smt {
// there are some other cases where relevancy propagation is harmful.
//
void setup::setup_relevancy(static_features& st) {
// the case split queue has been constructed by now.
// it is not safe to disable relevancy if the case split stragegy is relevancy-dependent.
if (m_params.m_case_split_strategy == CS_RELEVANCY ||
m_params.m_case_split_strategy == CS_RELEVANCY_ACTIVITY ||
m_params.m_case_split_strategy == CS_RELEVANCY_GOAL)
return;
if (st.m_has_bv && !st.m_has_fpa && st.m_num_quantifiers == 0)
m_params.m_relevancy_lvl = 0;
}