Abstract
One-counter automata (OCA) are a well-studied automata model that extends finite-state automata with one counter. The reachability problem of OCA was shown to be NP-complete when the integers in the OCA are encoded in binary. In this paper, we study the problem of computing the reachability relation of OCA. We show that, for each OCA, an existential Presburger arithmetic (EPA) formula of polynomial size can be computed in polynomial time to represent its reachability relation. This yields a polynomial-time reduction from the reachability problem of OCA to the satisfiability problem of EPA, enabling its solution via off-the-shelf SMT solvers. We implement the algorithm and provide the first tool OCAReach for the reachability problem of OCA. The experimental results demonstrate the efficacy of our approach.
This work is supported by Guangdong Science and Technology Department grant (No. 2018B010107004), Overseas Grant (KFKT2018A16) from the State Key Laboratory of Novel Software Technology, Nanjing University, China, the NSFC grants (No. 61872340), Natural Science Foundation of Guangdong Province, China (No. 2019A1515011689), the Open Project of Shanghai Key Laboratory of Trustworthy Computing (No. 07dz22304201601), and the INRIA-CAS joint research project VIP.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Available at https://github.com/SpencerL-Y/OCAReach.
References
Abdulla, P.A., Čerāns, K.: Simulation is decidable for one-counter nets. In: Sangiorgi, D., de Simone, R. (eds.) CONCUR 1998. LNCS, vol. 1466, pp. 253–268. Springer, Heidelberg (1998). https://doi.org/10.1007/BFb0055627
Bardin, S., Leroux, J., Point, G.: FAST extended release. In: Ball, T., Jones, R.B. (eds.) CAV 2006. LNCS, vol. 4144, pp. 63–66. Springer, Heidelberg (2006). https://doi.org/10.1007/11817963_9
Blondin, M., Finkel, A., Göller, S., Haase, C., McKenzie, P.: Reachability in two-dimensional vector addition systems with states is PSPACE-complete. In: 30th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2015, Kyoto, Japan, 6–10 July 2015, pp. 32–43. IEEE Computer Society (2015)
Böhm, S., Göller, S., Jančar, P.: Bisimilarity of one-counter processes is PSPACE-complete. In: Gastin, P., Laroussinie, F. (eds.) CONCUR 2010. LNCS, vol. 6269, pp. 177–191. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-15375-4_13
Böhm, S., Göller, S., Jancar, P.: Equivalence of deterministic one-counter automata is NL-complete. In: Boneh, D., Roughgarden, T., Feigenbaum, J. (eds.) Symposium on Theory of Computing Conference, STOC 2013, Palo Alto, CA, USA, 1–4 June 2013, pp. 131–140. ACM (2013)
Borosh, I., Treybig, L.B.: Bounds on positive integral solutions of linear Diophantine equations. Proc. Am. Math. Soc. 55(2), 299–304 (1976)
Bouajjani, A., Bozga, M., Habermehl, P., Iosif, R., Moro, P., Vojnar, T.: Programs with lists are counter automata. In: Ball, T., Jones, R.B. (eds.) CAV 2006. LNCS, vol. 4144, pp. 517–531. Springer, Heidelberg (2006). https://doi.org/10.1007/11817963_47
Chitic, C., Rosu, D.: On validation of XML streams using finite state machines. In: Amer-Yahia, S., Gravano, L. (eds.)Proceedings of the 7th International Workshop on the Web and Databases, WebDB 2004, 17–18 June 2004, Maison de la Chimie, Paris, France, Colocated with ACM SIGMOD/PODS 2004, pp. 85–90. ACM (2004)
Comon, H., Jurski, Y.: Timed automata and the theory of real numbers. In: Baeten, J.C.M., Mauw, S. (eds.) CONCUR 1999. LNCS, vol. 1664, pp. 242–257. Springer, Heidelberg (1999). https://doi.org/10.1007/3-540-48320-9_18
Dang, Z.: Pushdown timed automata: a binary reachability characterization and safety verification. Theor. Comput. Sci. 302(1–3), 93–121 (2003)
Demri, S., Gascon, R.: The effects of bounding syntactic resources on Presburger LTL. In: 14th International Symposium on Temporal Representation and Reasoning, TIME 2007, Alicante, Spain, 28–30 June 2007, pp. 94–104. IEEE Computer Society (2007)
Dima, C.: Computing reachability relations in timed automata. In: Proceedings of the 17th IEEE Symposium on Logic in Computer Science, LICS 2002, Copenhagen, Denmark, 22–25 July 2002, p. 177. IEEE Computer Society (2002)
Fearnley, J., Jurdzinski, M.: Reachability in two-clock timed automata is PSPACE-complete. Inf. Comput. 243, 26–36 (2015)
Fränzle, M., Quaas, K., Shirmohammadi, M., Worrell, J.: Effective definability of the reachability relation in timedautomata. Inf. Process. Lett. 153, 105871 (2020)
Göller, S., Haase, C., Ouaknine, J., Worrell, J.: Model checking succinct and parametric one-counter automata. In: Abramsky, S., Gavoille, C., Kirchner, C., Meyer auf der Heide, F., Spirakis, P.G. (eds.) ICALP 2010. LNCS, vol. 6199, pp. 575–586. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-14162-1_48
Göller, S., Lohrey, M.: Branching-time model checking of one-counter processes and timed automata. SIAM J. Comput. 42(3), 884–923 (2013)
Göller, S., Mayr, R., To, A.W.: On the computational complexity of verifying one-counter processes. In Proceedings of the 24th Annual IEEE Symposium on Logic in Computer Science, LICS 2009, Los Angeles, CA, USA, 11–14 August 2009, pp. 235–244. IEEE Computer Society (2009)
Haase, C.: On the complexity of model checking counter automata. Ph.D. thesis (2012)
Haase, C.: Subclasses of Presburger arithmetic and the weak EXP hierarchy. In: Proceedings of the Joint Meeting of the 23rd EACSL Annual Conference on Computer Science Logic (CSL) and the 29th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), CSL-LICS 2014, New York, NY, USA. Association for Computing Machinery (2014)
Haase, C., Kreutzer, S., Ouaknine, J., Worrell, J.: Reachability in succinct and parametric one-counter automata. In: Bravetti, M., Zavattaro, G. (eds.) CONCUR 2009. LNCS, vol. 5710, pp. 369–383. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-04081-8_25
Haase, C., Ouaknine, J., Worrell, J.: Relating reachability problems in timed and counter automata. Fundam. Inform. 143(3–4), 317–338 (2016)
Hague, M., Lin, A.W.: Model checking recursive programs with numeric data types. In: Gopalakrishnan, G., Qadeer, S. (eds.) CAV 2011. LNCS, vol. 6806, pp. 743–759. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-22110-1_60
Ibarra, O.H.: Reversal-bounded multicounter machines and their decision problems. J. ACM 25(1), 116–133 (1978)
Jancar, P., Kucera, A., Moller, F., Sawa, Z.: DP lower bounds for equivalence-checking and model-checking of one-counter automata. Inf. Comput. 188(1), 1–19 (2004)
Kučera, A.: Efficient verification algorithms for one-counter processes. In: Montanari, U., Rolim, J.D.P., Welzl, E. (eds.) ICALP 2000. LNCS, vol. 1853, pp. 317–328. Springer, Heidelberg (2000). https://doi.org/10.1007/3-540-45022-X_28
Lafourcade, P., Lugiez, D., Treinen, R.: Intruder deduction for AC-like equational theories with homomorphisms. In: Giesl, J. (ed.) RTA 2005. LNCS, vol. 3467, pp. 308–322. Springer, Heidelberg (2005). https://doi.org/10.1007/978-3-540-32033-3_23
Leroux, J., Sutre, G.: Flat counter automata almost everywhere!. In: Peled, D.A., Tsay, Y.-K. (eds.) ATVA 2005. LNCS, vol. 3707, pp. 489–503. Springer, Heidelberg (2005). https://doi.org/10.1007/11562948_36
Seidl, H., Schwentick, T., Muscholl, A., Habermehl, P.: Counting in trees for free. In: ICALP, pp. 1136–1149 (2004)
Smrčka, A., Vojnar, T.: Verifying parametrised hardware designs via counter automata. In: Yorav, K. (ed.) HVC 2007. LNCS, vol. 4899, pp. 51–68. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-77966-7_8
Xu, Z., Chen, T., Wu, Z.: Satisfiability of compositional separation logic with tree predicates and data constraints. In: de Moura, L. (ed.) CADE 2017. LNCS (LNAI), vol. 10395, pp. 509–527. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-63046-5_31
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Li, X., Chen, T., Wu, Z., Xia, M. (2020). Computing Linear Arithmetic Representation of Reachability Relation of One-Counter Automata. In: Pang, J., Zhang, L. (eds) Dependable Software Engineering. Theories, Tools, and Applications. SETTA 2020. Lecture Notes in Computer Science(), vol 12153. Springer, Cham. https://doi.org/10.1007/978-3-030-62822-2_6
Download citation
DOI: https://doi.org/10.1007/978-3-030-62822-2_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-62821-5
Online ISBN: 978-3-030-62822-2
eBook Packages: Computer ScienceComputer Science (R0)