Fix another Z3ConstraintManager crash, use fixAPSInt() to extend a
boolean APSInt.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
LGTM with a nit on a test name.
test/Analysis/pr37646.c | ||
---|---|---|
1 ↗ | (On Diff #149396) | The tests are already quite messy, but adding a new file per each bug seems excessive. Could we take your test and test/Analysis/apsint.c and combine them into e.g. z3_apsint_encoding.c ? (also adding a link to bugzilla) |
We might as well make a directory for z3-specific tests. Eg., z3/bool-bit-width.c.
Also does this test need to be z3-specific? We would also not like to crash here without z3.
Same.
I had the same though originally about the REQUIRES line. Since this code path is very specific to Z3ConstraintManager, it didn't seem useful to run the test on normal buildbots. But I have no preference either way.
I originally did that so I could specify enabling and testing the z3 backend; however, looking at the testing infra more I realize that z3 is supposed to be run on the analyzer tests but it seems like z3 tests have been broken since October when r315627 landed. I submitted a fix in https://reviews.llvm.org/D47722