{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,27]],"date-time":"2026-05-27T10:50:25Z","timestamp":1779879025314,"version":"3.53.1"},"reference-count":30,"publisher":"Springer Science and Business Media LLC","issue":"2","license":[{"start":{"date-parts":[[2025,4,1]],"date-time":"2025-04-01T00:00:00Z","timestamp":1743465600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2025,4,15]],"date-time":"2025-04-15T00:00:00Z","timestamp":1744675200000},"content-version":"vor","delay-in-days":14,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"DOI":"10.13039\/501100005950","name":"Hong Kong University of Science and Technology","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100005950","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Int J Softw Tools Technol Transfer"],"published-print":{"date-parts":[[2025,4]]},"abstract":"<jats:title>Abstract<\/jats:title>\n          <jats:p>Interleaved Dyck Reachability is a standard, graph-based formulation of a plethora of static analyses that seek to be <jats:italic>context-<\/jats:italic> and <jats:italic>field-<\/jats:italic>sensitive, where each type of sensitivity is expressed via a CFL\/Dyck language. Unfortunately, the problem is well known to be undecidable in general, and thus existing approaches resort to clever overapproximations. Recently, a mutual-refinement algorithm, that iteratively considers each of the two sensitivities in isolation until a fixpoint is reached, was shown to achieve high precision. In this work we present a more precise approximation of Interleaved Dyck Reachability, by extending the mutual-refinement algorithm in three general directions. First, we develop refined CFLs to express each type of sensitivity precisely, while simultaneously also lightly overapproximating the opposite type. Second, we modify the graph information in a way to highlight unreachable paths not previously captured by the algorithm. Third, we apply the resulting algorithm on an on-demand basis, which effectively masks out imprecision incurred by parts of the graph that are irrelevant for the query at hand. Our experiments show that the new approach offers significantly higher precision than the vanilla mutual-refinement algorithm and other common baselines; for a particularly challenging benchmark, we report, on average, <jats:inline-formula>\n              <jats:alternatives>\n                <jats:tex-math>$51\\%$<\/jats:tex-math>\n                <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\">\n                  <mml:mn>51<\/mml:mn>\n                  <mml:mi>%<\/mml:mi>\n                <\/mml:math>\n              <\/jats:alternatives>\n            <\/jats:inline-formula> of the reachable pairs compared to the most recent alternative.<\/jats:p>","DOI":"10.1007\/s10009-025-00787-0","type":"journal-article","created":{"date-parts":[[2025,4,15]],"date-time":"2025-04-15T13:40:41Z","timestamp":1744724441000},"page":"255-266","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":3,"title":["CFL-based methods for approximating interleaved Dyck reachability"],"prefix":"10.1007","volume":"27","author":[{"given":"Giovanna Kobus","family":"Conrado","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andreas","family":"Pavlogiannis","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,4,15]]},"reference":[{"issue":"11","key":"787_CR1","doi-asserted-by":"publisher","first-page":"701","DOI":"10.1016\/S0950-5849(98)00093-7","volume":"40","author":"T. Reps","year":"1998","unstructured":"Reps, T.: Program analysis via graph reachability. Inf. Softw. Technol. 40(11), 701\u2013726 (1998). https:\/\/doi.org\/10.1016\/S0950-5849(98)00093-7","journal-title":"Inf. Softw. Technol."},{"key":"787_CR2","doi-asserted-by":"publisher","first-page":"230","DOI":"10.1145\/298514.298576","volume-title":"Proceedings of the Ninth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, PODS","author":"M. Yannakakis","year":"1990","unstructured":"Yannakakis, M.: Graph-theoretic methods in database theory. In: Proceedings of the Ninth ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, PODS, pp.\u00a0230\u2013242 (1990)"},{"issue":"4","key":"787_CR3","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1145\/3583660.3583664","volume":"9","author":"A. Pavlogiannis","year":"2022","unstructured":"Pavlogiannis, A.: CFL\/Dyck reachability: an algorithmic perspective. ACM SIGLOG News 9(4), 5\u201325 (2022). https:\/\/doi.org\/10.1145\/3583660.3583664","journal-title":"ACM SIGLOG News"},{"key":"787_CR4","volume-title":"POPL","author":"T. Reps","year":"1995","unstructured":"Reps, T., Horwitz, S., Sagiv, M.: Precise interprocedural dataflow analysis via graph reachability. In: POPL. ACM, New York (1995)"},{"key":"787_CR5","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/215465.215466","volume-title":"Proceedings of the 1995 ACM SIGPLAN Symposium on Partial Evaluation and Semantics-Based Program Manipulation, PEPM\u20199","author":"T. Reps","year":"1995","unstructured":"Reps, T.: Shape analysis as a generalized path problem. In: Proceedings of the 1995 ACM SIGPLAN Symposium on Partial Evaluation and Semantics-Based Program Manipulation, PEPM\u20199, pp.\u00a01\u201311. Association for Computing Machinery, New York (1995). https:\/\/doi.org\/10.1145\/215465.215466"},{"key":"787_CR6","first-page":"54","volume-title":"Proceedings of the 28th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL","author":"J. Rehof","year":"2001","unstructured":"Rehof, J., F\u00e4hndrich, M.: Type-base flow analysis: from polymorphic subtyping to CFL-reachability. In: Proceedings of the 28th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL, pp.\u00a054\u201366 (2001)"},{"key":"787_CR7","doi-asserted-by":"publisher","first-page":"106","DOI":"10.1145\/2771783.2771803","volume-title":"Proceedings of the 2015 International Symposium on Software Testing and Analysis, ISSTA 2015","author":"W. Huang","year":"2015","unstructured":"Huang, W., Dong, Y., Milanova, A., Dolby, J.: Scalable and precise taint analysis for Android. In: Proceedings of the 2015 International Symposium on Software Testing and Analysis, ISSTA 2015, pp.\u00a0106\u2013117. Association for Computing Machinery, New York (2015). https:\/\/doi.org\/10.1145\/2771783.2771803"},{"key":"787_CR8","doi-asserted-by":"publisher","first-page":"880","DOI":"10.1007\/978-3-662-54434-1_33","volume-title":"Programming Languages and Systems","author":"H. Tang","year":"2017","unstructured":"Tang, H., Wang, D., Xiong, Y., Zhang, L., Wang, X., Zhang, L.: Conditional Dyck-cfl reachability analysis for complete and efficient library summarization. In: Yang, H. (ed.) Programming Languages and Systems, pp.\u00a0880\u2013908. Springer, Berlin (2017)"},{"key":"787_CR9","doi-asserted-by":"publisher","first-page":"47","DOI":"10.1007\/11688839_5","volume-title":"Proceedings of the 15th International Conference on Compiler Construction, CC\u201906","author":"O. Lhot\u00e1k","year":"2006","unstructured":"Lhot\u00e1k, O., Hendren, L.: Context-sensitive points-to analysis: is it worth it? In: Proceedings of the 15th International Conference on Compiler Construction, CC\u201906, pp.\u00a047\u201364. Springer, Berlin (2006). https:\/\/doi.org\/10.1007\/11688839_5"},{"key":"787_CR10","doi-asserted-by":"publisher","first-page":"155","DOI":"10.1145\/2001420.2001440","volume-title":"Proceedings of the 2011 International Symposium on Software Testing and Analysis, ISSTA\u201911","author":"D. Yan","year":"2011","unstructured":"Yan, D., Xu, G., Rountev, A.: Demand-driven context-sensitive alias analysis for Java. In: Proceedings of the 2011 International Symposium on Software Testing and Analysis, ISSTA\u201911, pp.\u00a0155\u2013165. Association for Computing Machinery, New York (2011). https:\/\/doi.org\/10.1145\/2001420.2001440"},{"key":"787_CR11","doi-asserted-by":"publisher","first-page":"59","DOI":"10.1145\/1094811.1094817","volume-title":"Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA\u201905","author":"M. Sridharan","year":"2005","unstructured":"Sridharan, M., Gopan, D., Shan, L., Bod\u00edk, R.: Demand-driven points-to analysis for Java. In: Proceedings of the 20th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA\u201905, pp.\u00a059\u201376. Association for Computing Machinery, New York (2005). https:\/\/doi.org\/10.1145\/1094811.1094817"},{"key":"787_CR12","doi-asserted-by":"publisher","first-page":"264","DOI":"10.1145\/2259016.2259050","volume-title":"Proceedings of the Tenth International Symposium on Code Generation and Optimization, CGO\u201912","author":"L. Shang","year":"2012","unstructured":"Shang, L., Xie, X., Xue, J.: On-demand dynamic summary-based points-to analysis. In: Proceedings of the Tenth International Symposium on Code Generation and Optimization, CGO\u201912, pp.\u00a0264\u2013274. Association for Computing Machinery, New York (2012). https:\/\/doi.org\/10.1145\/2259016.2259050"},{"issue":"OOPSLA","key":"787_CR13","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3428246","volume":"4","author":"A. Milanova","year":"2020","unstructured":"Milanova, A.: FlowCFL: generalized type-based reachability analysis: graph reduction and equivalence of CFL-based and type-based reachability. Proc. ACM Program. Lang. 4(OOPSLA), 1\u201329 (2020). https:\/\/doi.org\/10.1145\/3428246","journal-title":"Proc. ACM Program. Lang."},{"key":"787_CR14","doi-asserted-by":"publisher","first-page":"265","DOI":"10.1145\/2892208.2892235","volume-title":"Proceedings of the 25th International Conference on Compiler Construction, CC 2016","author":"Y. Sui","year":"2016","unstructured":"Sui, Y., Xue, J.: Svf: interprocedural static value-flow analysis in LLVM. In: Proceedings of the 25th International Conference on Compiler Construction, CC 2016, pp.\u00a0265\u2013266. Association for Computing Machinery, New York (2016). https:\/\/doi.org\/10.1145\/2892208.2892235"},{"issue":"1","key":"787_CR15","doi-asserted-by":"publisher","first-page":"162","DOI":"10.1145\/345099.345137","volume":"22","author":"T. Reps","year":"2000","unstructured":"Reps, T.: Undecidability of context-sensitive data-dependence analysis. ACM Trans. Program. Lang. Syst. 22(1), 162\u2013186 (2000). https:\/\/doi.org\/10.1145\/345099.345137","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"787_CR16","doi-asserted-by":"publisher","unstructured":"Kjelstr\u00f8m, A.H., Pavlogiannis, A.: The decidability and complexity of interleaved bidirected Dyck reachability. Proc. ACM Program. Lang. 6(POPL) (2022). https:\/\/doi.org\/10.1145\/3498673","DOI":"10.1145\/3498673"},{"issue":"6","key":"787_CR17","doi-asserted-by":"publisher","first-page":"387","DOI":"10.1145\/1133255.1134027","volume":"41","author":"M. Sridharan","year":"2006","unstructured":"Sridharan, M., Bod\u00edk, R.: Refinement-based context-sensitive points-to analysis for Java. SIGPLAN Not. 41(6), 387\u2013400 (2006). https:\/\/doi.org\/10.1145\/1133255.1134027","journal-title":"SIGPLAN Not."},{"issue":"1","key":"787_CR18","doi-asserted-by":"publisher","first-page":"344","DOI":"10.1145\/3093333.3009848","volume":"52","author":"Q. Zhang","year":"2017","unstructured":"Zhang, Q., Su, Z.: Context-sensitive data-dependence analysis via linear conjunctive language reachability. ACM SIGPLAN Not. 52(1), 344\u2013358 (2017). https:\/\/doi.org\/10.1145\/3093333.3009848","journal-title":"ACM SIGPLAN Not."},{"key":"787_CR19","doi-asserted-by":"publisher","unstructured":"Sp\u00e4th, J., Ali, K., Bodden, E.: Context-, flow-, and field-sensitive data-flow analysis using synchronized pushdown systems. Proc. ACM Program. Lang. 3(POPL) (2019). https:\/\/doi.org\/10.1145\/3290361","DOI":"10.1145\/3290361"},{"key":"787_CR20","doi-asserted-by":"publisher","first-page":"231","DOI":"10.1007\/978-3-031-44245-2_12","volume-title":"Static Analysis: 30th International Symposium, SAS 2023, Cascais, Portugal, October 22\u201324, 2023, Proceedings","author":"S. Ding","year":"2023","unstructured":"Ding, S., Zhang, Q.: Mutual refinements of context-free language reachability. In: Static Analysis: 30th International Symposium, SAS 2023, Cascais, Portugal, October 22\u201324, 2023, Proceedings, pp.\u00a0231\u2013258. Springer, Berlin (2023). https:\/\/doi.org\/10.1007\/978-3-031-44245-2_12"},{"key":"787_CR21","doi-asserted-by":"publisher","first-page":"18","DOI":"10.1145\/3652588.3663318","volume-title":"Proceedings of the 13th ACM SIGPLAN International Workshop on the State of the Art in Program Analysis, SOAP 2024","author":"G.K. Conrado","year":"2024","unstructured":"Conrado, G.K., Pavlogiannis, A.: A better approximation for interleaved Dyck reachability. In: Proceedings of the 13th ACM SIGPLAN International Workshop on the State of the Art in Program Analysis, SOAP 2024, pp.\u00a018\u201325. Association for Computing Machinery, New York (2024). https:\/\/doi.org\/10.1145\/3652588.3663318"},{"issue":"1","key":"787_CR22","doi-asserted-by":"publisher","first-page":"159","DOI":"10.1145\/1328897.1328460","volume":"43","author":"S. Chaudhuri","year":"2008","unstructured":"Chaudhuri, S.: Subcubic algorithms for recursive state machines. SIGPLAN Not. 43(1), 159\u2013169 (2008). https:\/\/doi.org\/10.1145\/1328897.1328460","journal-title":"SIGPLAN Not."},{"key":"787_CR23","first-page":"342","volume-title":"LICS\u201997","author":"N. Heintze","year":"1997","unstructured":"Heintze, N., McAllester, D.: On the cubic bottleneck in subtyping and flow analysis. In: LICS\u201997, p.\u00a0342. IEEE Computer Society, Washington (1997)"},{"key":"787_CR24","doi-asserted-by":"crossref","unstructured":"Chatterjee, K., Choudhary, B., Pavlogiannis, A.: Optimal Dyck reachability for data-dependence and alias analysis. Proc. ACM Program. Lang. 2(POPL) (2018)","DOI":"10.1145\/3158118"},{"key":"787_CR25","doi-asserted-by":"publisher","first-page":"22","DOI":"10.4230\/LIPICS.ITCS.2024.22","volume-title":"LIPIcs, Volume 287, ITCS 2024","author":"K. Bringmann","year":"2024","unstructured":"Bringmann, K., Gr\u00f8nlund, A., K\u00fcnnemann, M., Larsen, K.G.: The NFA acceptance hypothesis: non-combinatorial and dynamic lower bounds. In: LIPIcs, Volume 287, ITCS 2024, vol.\u00a0287, pp.\u00a022\u201312225 (2024). https:\/\/doi.org\/10.4230\/LIPICS.ITCS.2024.22"},{"key":"787_CR26","doi-asserted-by":"publisher","unstructured":"Mathiasen, A.A., Pavlogiannis, A.: The fine-grained and parallel complexity of Andersen\u2019s pointer analysis. Proc. ACM Program. Lang. 5(POPL) (2021). https:\/\/doi.org\/10.1145\/3434315","DOI":"10.1145\/3434315"},{"key":"787_CR27","doi-asserted-by":"publisher","DOI":"10.1016\/j.ipl.2021.106135","volume":"171","author":"J. Cetti Hansen","year":"2021","unstructured":"Cetti Hansen, J., Husted Kjelstr\u00f8m, A., Pavlogiannis, A.: Tight bounds for reachability problems on one-counter and pushdown systems. Inf. Process. Lett. 171, 106135 (2021). https:\/\/doi.org\/10.1016\/j.ipl.2021.106135","journal-title":"Inf. Process. Lett."},{"key":"787_CR28","doi-asserted-by":"crossref","unstructured":"Alur, R., Benedikt, M., Etessami, K., Godefroid, P., Reps, T.W., Yannakakis, M.: Analysis of recursive state machines. ACM Trans. Program. Lang. Syst. (2005)","DOI":"10.1145\/1075382.1075387"},{"key":"787_CR29","doi-asserted-by":"publisher","first-page":"97","DOI":"10.1145\/2676726.2676979","volume-title":"Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages","author":"K. Chatterjee","year":"2015","unstructured":"Chatterjee, K., Ibsen-Jensen, R., Pavlogiannis, A., Goyal, P.: Faster algorithms for algebraic path properties in recursive state machines with constant treewidth. In: Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, pp.\u00a097\u2013109. ACM, Mumbai (2015). https:\/\/doi.org\/10.1145\/2676726.2676979"},{"key":"787_CR30","doi-asserted-by":"publisher","unstructured":"Li, Y., Zhang, Q., Reps, T.: Single-source-single-target interleaved-Dyck reachability via integer linear programming. Proc. ACM Program. Lang. 7(POPL) (2023). https:\/\/doi.org\/10.1145\/3571228","DOI":"10.1145\/3571228"}],"container-title":["International Journal on Software Tools for Technology Transfer"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10009-025-00787-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10009-025-00787-0\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10009-025-00787-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,11]],"date-time":"2025-06-11T13:18:19Z","timestamp":1749647899000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10009-025-00787-0"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,4]]},"references-count":30,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2025,4]]}},"alternative-id":["787"],"URL":"https:\/\/doi.org\/10.1007\/s10009-025-00787-0","relation":{},"ISSN":["1433-2779","1433-2787"],"issn-type":[{"value":"1433-2779","type":"print"},{"value":"1433-2787","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,4]]},"assertion":[{"value":"4 April 2025","order":1,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"15 April 2025","order":2,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}}]}}