Remove z3 constraint solver option - #5055
Merged
bruntib merged 3 commits intoAug 31, 2026
Merged
Conversation
Upstream Clang removed -analyzer-constraints=z3, replacing it with unsupported-z3 (llvm/llvm-project#205370). CodeChecker no longer injects this flag into the analyzer command line. - --z3 flag is kept but deprecated (no-op with warning), removal in 6.30 - is_z3_capable() probes both unsupported-z3 and z3 for older clangs - Z3 refutation (--z3-refutation) is unaffected
Since the z3 solver it is officially unsupported in clangsa and it is inherently slow for production use, the flag is removed.
Member
Author
|
This PR is based on #5011 from @gamesh411 |
bruntib
requested changes
Aug 30, 2026
Comment on lines
+745
to
+751
| handler.enable_z3 = 'enable_z3' in args and args.enable_z3 == 'on' | ||
| if handler.enable_z3: | ||
| LOG.warning("The '--z3' flag is deprecated and has no effect. " | ||
| "The Z3 constraint solver backend is no longer " | ||
| "supported by upstream Clang. This flag will be " | ||
| "removed in CodeChecker 6.30. Use " | ||
| "'--z3-refutation' instead.") |
Contributor
There was a problem hiding this comment.
The --z3 flag has been eliminated, so this can never be True. This whole section could be removed.
bruntib
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backward Incompatible: Remove --z3 flag
Since the z3 solver it is officially unsupported in clangsa
and it is inherently slow for production use, the flag is removed.
Z3 refutation for clang static analyzer will continue to be supported!