Clara: A Framework for Partially Evaluating Finite-State Runtime Monitors Ahead of Time [chapter]

Eric Bodden, Patrick Lam, Laurie Hendren
2010 Lecture Notes in Computer Science  
Researchers have developed a number of runtime verification tools that generate runtime monitors in the form of AspectJ aspects. In this work, we present Clara, a novel framework to statically optimize such monitoring aspects with respect to a given program under test. Clara uses a sequence of increasingly precise static analyses to automatically convert a monitoring aspect into a residual runtime monitor. The residual monitor only watches events triggered by program locations that the analyses
more » ... failed to prove safe at compile time. In two-thirds of the cases in our experiments, the static analysis succeeds on all locations, proving that the program fulfills the stated properties, and completely obviating the need for runtime monitoring. In the remaining cases, the residual runtime monitor is usually much more efficient than a full monitor, yet still captures all property violations at runtime.
doi:10.1007/978-3-642-16612-9_15 fatcat:rdhtcze6frbydd2p3xw33znkma