Skip to main content

Computing Linear Arithmetic Representation of Reachability Relation of One-Counter Automata

  • Conference paper
  • First Online:
Dependable Software Engineering. Theories, Tools, and Applications (SETTA 2020)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 12153))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Available at https://github.com/SpencerL-Y/OCAReach.

References

  1. 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

    Chapter  Google Scholar 

  2. 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

    Chapter  Google Scholar 

  3. 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)

    Google Scholar 

  4. 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

    Chapter  Google Scholar 

  5. 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)

    Google Scholar 

  6. Borosh, I., Treybig, L.B.: Bounds on positive integral solutions of linear Diophantine equations. Proc. Am. Math. Soc. 55(2), 299–304 (1976)

    Article  MathSciNet  Google Scholar 

  7. 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

    Chapter  Google Scholar 

  8. 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)

    Google Scholar 

  9. 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

    Chapter  MATH  Google Scholar 

  10. Dang, Z.: Pushdown timed automata: a binary reachability characterization and safety verification. Theor. Comput. Sci. 302(1–3), 93–121 (2003)

    Article  MathSciNet  Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. Fearnley, J., Jurdzinski, M.: Reachability in two-clock timed automata is PSPACE-complete. Inf. Comput. 243, 26–36 (2015)

    Article  MathSciNet  Google Scholar 

  14. Fränzle, M., Quaas, K., Shirmohammadi, M., Worrell, J.: Effective definability of the reachability relation in timedautomata. Inf. Process. Lett. 153, 105871 (2020)

    Article  Google Scholar 

  15. 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

    Chapter  MATH  Google Scholar 

  16. Göller, S., Lohrey, M.: Branching-time model checking of one-counter processes and timed automata. SIAM J. Comput. 42(3), 884–923 (2013)

    Article  MathSciNet  Google Scholar 

  17. 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)

    Google Scholar 

  18. Haase, C.: On the complexity of model checking counter automata. Ph.D. thesis (2012)

    Google Scholar 

  19. 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)

    Google Scholar 

  20. 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

    Chapter  Google Scholar 

  21. Haase, C., Ouaknine, J., Worrell, J.: Relating reachability problems in timed and counter automata. Fundam. Inform. 143(3–4), 317–338 (2016)

    Article  MathSciNet  Google Scholar 

  22. 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

    Chapter  Google Scholar 

  23. Ibarra, O.H.: Reversal-bounded multicounter machines and their decision problems. J. ACM 25(1), 116–133 (1978)

    Article  MathSciNet  Google Scholar 

  24. 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)

    Article  MathSciNet  Google Scholar 

  25. 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

    Chapter  Google Scholar 

  26. 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

    Chapter  Google Scholar 

  27. 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

    Chapter  Google Scholar 

  28. Seidl, H., Schwentick, T., Muscholl, A., Habermehl, P.: Counting in trees for free. In: ICALP, pp. 1136–1149 (2004)

    Google Scholar 

  29. 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

    Chapter  Google Scholar 

  30. 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

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Zhilin Wu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics