Commit dfb86a3
committed
[analyzer][Solver] Improve getSymVal and friends (1/2)
Instead of just doing a lookup in the existing constraints,
let's use `getRange()` for dissambling SymSymExprs and inferring from
the constraint system what end range set we can simplify.
This means that `getSymVal` gets more expensive while getting smarter.
I don't expect it to be an issue as this API is only rarely used, and
`getRange` is used a lot more often - yet without any observable hit on
performance.
This patch also removes dead declarations of EQClass overloads.1 parent 91b5bef commit dfb86a3
File tree
3 files changed
+14
-39
lines changed- clang
- lib/StaticAnalyzer
- Checkers
- Core
- test/Analysis
3 files changed
+14
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
1942 | | - | |
1943 | 1942 | | |
1944 | 1943 | | |
1945 | | - | |
1946 | | - | |
1947 | 1944 | | |
1948 | 1945 | | |
1949 | 1946 | | |
| |||
2866 | 2863 | | |
2867 | 2864 | | |
2868 | 2865 | | |
2869 | | - | |
2870 | | - | |
| 2866 | + | |
| 2867 | + | |
2871 | 2868 | | |
2872 | 2869 | | |
2873 | 2870 | | |
2874 | 2871 | | |
2875 | | - | |
2876 | | - | |
2877 | | - | |
2878 | | - | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
2879 | 2875 | | |
2880 | 2876 | | |
2881 | 2877 | | |
2882 | 2878 | | |
2883 | | - | |
2884 | | - | |
2885 | | - | |
2886 | | - | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
2887 | 2882 | | |
2888 | 2883 | | |
2889 | 2884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
57 | 54 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 55 | + | |
65 | 56 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 57 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 58 | + | |
80 | 59 | | |
0 commit comments