%0 Conference Proceedings %T A lesson on runtime assertion checking with Frama-C %+ Département Ingénierie Logiciels et Systèmes (DILS) %A Kosmatov, N. %A Signoles, J. %Z Conference of 4th International Conference on Runtime Verification, RV 2013 ; Conference Date: 24 September 2013 Through 27 September 2013; Conference Code:100802 %< avec comité de lecture %B Runtime Verification. RV 2013. Lecture Notes in Computer Science %C Rennes, France %V 8174 LNCS %P 386-399 %8 2013-09-24 %D 2013 %R 10.1007/978-3-642-40787-1_29 %K e-acsl %K Executable specifications %K Frama-C %K invalid pointers %K Program monitoring %K Runtime assertion checking %K Errors %K Specification languages %K C (programming language) %Z Computer Science [cs]Conference papers %X Runtime assertion checking provides a powerful, highly automatizable technique to detect violations of specified program properties. This paper provides a lesson on runtime assertion checking with Frama-C, a publicly available toolset for analysis of C programs. We illustrate how a C program can be specified in executable specification language e-acsl and how this specification can be automatically translated into instrumented C code suitable for monitoring and runtime verification of specified properties. We show how various errors can be automatically detected on the instrumented code, including C runtime errors, failures in postconditions, assertions, preconditions of called functions, and memory leaks. Benefits of combining runtime assertion checking with other Frama-C analyzers are illustrated as well. %G English %L cea-01834991 %U https://cea.hal.science/cea-01834991 %~ CEA %~ DRT %~ LIST