Skip to main content

A Debugger for Probabilistic Programs

  • Conference paper
  • First Online:
Software Engineering and Formal Methods (SEFM 2021)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 13085))

Included in the following conference series:

  • 722 Accesses

Abstract

We provide a prototype implementation of a recording-based debugger for imperative probabilistic programs supporting randomised choice, conditioning, and loops. In order to handle different branches of execution, we take a semantics-based approach that employs weakest preexpectations and that introduces iteration limits for approximating the behaviour of potentially non-terminating loops, while giving hard bounds on the corresponding value without loop iteration limits.

The work presented in this tool paper is based on the Master’s thesis by Alexander Hoppen [5].

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 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.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

Similar content being viewed by others

Notes

  1. 1.

    The same logic also applies to prob- and while-statements. For loops, the user can jump into the loop’s body or exit the loop.

  2. 2.

    Here, if-, prob and while-statements are viewed as single statements that include their bodies.

References

  1. Aggarwal, S.K., Kumar, M.S.: Debuggers for programming languages. In: The Compiler Design Handbook, pp. 297–329. CRC Press (2002)

    Google Scholar 

  2. Corporation, M.: Mozilla RR debugger (2020). https://rr-project.org

  3. Dijkstra, E.W.: A Discipline of Programming. Prentice-Hall, Hoboken (1976)

    MATH  Google Scholar 

  4. Gordon, A.D., Henzinger, T.A., Nori, A.V., Rajamani, S.K.: Probabilistic programming. In: Future of Software Engineering, pp. 167–181. ACM (2014)

    Google Scholar 

  5. Hoppen, A.: Design and implementation of an interactive exploration tool for probabilistic programs. Master’s thesis, RWTH Aachen University, Germany (2020). https://publications.rwth-aachen.de/record/802809

  6. Hoppen, A., Noll, T.: A debugger for probabilistic programs. Technical report, RWTH Aachen University (2020). https://moves.rwth-aachen.de/wp-content/uploads/probabilistic-debugger-report.pdf

  7. Katoen, J.-P., Gretz, F., Jansen, N., Kaminski, B.L., Olmedo, F.: Understanding probabilistic programs. In: Meyer, R., Platzer, A., Wehrheim, H. (eds.) Correct System Design. LNCS, vol. 9360, pp. 15–32. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-23506-6_4

    Chapter  Google Scholar 

  8. McIver, A., Morgan, C., Morgan, C.C.: Abstraction, Refinement and Proof for Probabilistic Systems. Springer, New York (2005). https://doi.org/10.1007/b138392

  9. Nandi, C., Grossman, D., Sampson, A., Mytkowicz, T., McKinley, K.S.: Debugging probabilistic programs. In: MAPL 2017, pp. 18–26. ACM (2017)

    Google Scholar 

  10. Noll, T.: A debugger for probabilistic programs, October 2021. https://git.rwth-aachen.de/moves/probabilistic-debugger

  11. Telles, M., Hsieh, Y.: The Science of Debugging. Coriolis (2001)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Thomas Noll .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Hoppen, A., Noll, T. (2021). A Debugger for Probabilistic Programs. In: Calinescu, R., Păsăreanu, C.S. (eds) Software Engineering and Formal Methods. SEFM 2021. Lecture Notes in Computer Science(), vol 13085. Springer, Cham. https://doi.org/10.1007/978-3-030-92124-8_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-92124-8_16

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-92123-1

  • Online ISBN: 978-3-030-92124-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics