Commit 4bf74c7
committed
[analyzer][Solver] Improve getSymVal and friends
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 4bf74c7
File tree
2 files changed
+12
-22
lines changed- clang
- lib/StaticAnalyzer/Core
- test/Analysis
2 files changed
+12
-22
lines changed| 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 | | |
| 2872 | + | |
| 2873 | + | |
2875 | 2874 | | |
2876 | 2875 | | |
2877 | 2876 | | |
| |||
2880 | 2879 | | |
2881 | 2880 | | |
2882 | 2881 | | |
| 2882 | + | |
| 2883 | + | |
2883 | 2884 | | |
2884 | 2885 | | |
2885 | 2886 | | |
| |||
| 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 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 58 | + | |
70 | 59 | | |
71 | 60 | | |
72 | 61 | | |
73 | | - | |
74 | | - | |
| 62 | + | |
| 63 | + | |
75 | 64 | | |
76 | 65 | | |
77 | 66 | | |
| |||
0 commit comments