A Survey ofRuntime Verification.ppt


文档分类:生活休闲 | 页数:约16页 举报非法文档有奖
1/16
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/16
文档列表 文档介绍
A Survey of Runtime Verification Jonathan Amir 2004 2 Background ? Model checking: ? Formal, sound, provides guarantees. ? Doesn ’ t scale well - state explosion problem. ? Checks a model, not an implementation. ? Some people fear it – too much formalism. ? Software testing (ad-hoc checking): ? Most widely used technique in the industry. ? Scales well, usually inexpensive. ? Test an implementation directly. ? Informal, doesn ’ t provide guarantees. 3 Runtime Verification ? Attempt to bridge the gap between formal methods and software testing. ? A program is monitored while it is running and checked against properties of interest. ? Properties are specified in a formal notation. ? Dealing only with finite traces. ? Considered as a light-weight formal method technique. ? Testing with formal “ flavour ”. ? Still doesn ’ t provide full guarantees. 4 Runtime Verification, cont ’d ? How to monitor a program? ? Need to extract events from the program while it is running. ? code instrumentation. Static phase Dynamic phase Program Specifications Code Instrumentation Instrumented Program Runtime Checker Stream of events 5 ? Property of interest is [](x>0) . ? Search code for assignments to x. ? Insert code stubs municate with the monitor. ? Three means munication: ? Networking. ? Shared memory. ? File system. An (informal) example x = 5 // code stub here // reports to monitor …… x = -1 // code stub here // reports to monitor. // monitor detects // violation 6 Finite traces ? Trace semantics are different for finite traces. ? Can fake infinite trace by stuttering. ? Stutter the last state, or ? stutter a “ dummy ” state that doesn ’ t fulfill any proposition. ? Problem: meaning of [] operator changes. ? A more accepted alternative: define different acceptance condition. 7 Finite traces, Cont ’d ? Acceptance condition: A trace is acceptable if all its eventualities have been fulfilled. ? Example: [](x -> <>y) . ? What if every occurrence of x is followed by

A Survey ofRuntime Verification 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数16
  • 收藏数0 收藏
  • 顶次数0
  • 上传人wangzhidaol
  • 文件大小122 KB
  • 时间2017-02-27