版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Linear Temporal Logic,Linear Temporal Logic (LTL),LTL Notes,Invented by Prior (1960s), and first use to reason about concurrent systems by A. Pnueli, Z. Manna, etc. LTL model-checkers are usually explicit-state checkers due to connection between LTL and automata theory Most popular LTL-based checker
2、 is Spin (G. Holzman),Computational Tree Logic (CTL),Computational Tree Logic (CTL),Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Computation Tree Logic,Example CTL Specifications,For a
3、ny state, a request (for some resource) will eventually be acknowledged,AG(requested - AF acknowledged),From any state, it is possible to get to a restart state,AG(EF restart),An upwards travelling elevator at the second floor does not changes its direction when it has passengers waiting to go to th
4、e fifth floor,AG(floor=2 & direction=up & button5pressed) - Adirection=up U floor=5),CTL Notes,Invented by E. Clarke and E. A. Emerson (early 1980s) Specification language for Symbolic Model Verifier (SMV) model-checker SMV is a symbolic model-checker instead of an explicit-state model-checker Symbo
5、lic model-checking uses Binary Decision Diagrams (BDDs) to represent boolean functions (both transition system and specification,Comparing LTL and CTL,CTL is not strictly more expression than LTL (and vice versa) CTL* invented by Emerson and Halpern in 1986 to unify CTL and LTL We believe that almos
6、t all properties that one wants to express about software lie in intersection of LTL and CTL,Motivation for Specification Patterns,Temporal properties are not always easy to write Clearly many specifications can be captured in both CTL and LTL,LTL: (P - Q),CTL: AG(P - AF Q),Capure the experience bas
7、e of expert designers Transfer that experience between practictioners.,We use specification patterns to:,Pattern Hierarchy,Property Patterns,Occurrence,Order,Absence,Universality,Existence,Bounded Existence,Precedence,Response,Chain Precedence,Chain Response,Occurrence Patterns,Absence: A given stat
8、e/event does not occur within a scope Existence: A given state/event must occur within a scope Bounded Existence: A given state/event must occur k times within a scope variants: at least k times in scope, at most k times in scope Universality: A given state/event must occur throughout a scope,Order
9、Patterns,Precedence: A state/event P must always be preceded by a state/event Q within a scope Response: A state/event P must always be followed a state/event Q within a scope Chain Precedence: A sequence of state/events P1, , Pn must always be preceded by a sequence of states/events Q1, , Qm within
10、 a scope Chain Response: A sequence of state/events P1, , Pn must always be followed by a sequence of states/events Q1, , Qm within a scope,Pattern Scopes,Global,Before Q,After Q,Between Q and R,After Q and R,State sequence,Q,R,Q,Q,R,Q,The Response Pattern,To describe cause-effect relationships betw
11、een a pair of events/states. An occurrence of the first, the cause, must be followed by an occurrence of the second, the effect. Also known as Follows and Leads-to.,Intent,Mappings: In these mappings, P is the cause and S is the effect,(P - S),R - (P - (!R U (S & !R) U R,(Q - (P - S),(Q & !R & R) -
12、(P - (!R U (S & !R) U R),(Q & !R - (P - (!R U (S & !R) W R),Globally:,Before R:,After Q:,Between Q and R:,After Q until R:,LTL:,The Response Pattern (continued),Mappings: In these mappings, P is the cause and S is the effect,AG(P - AF(S),A(P - A!R U (S & !R) | AG(!R) W R,A!Q W (Q & AG(P - AF(S),AG(Q
13、 & !R - A(P - A!R U (S & !R) | AG(!R) W R),AG(Q & !R - A(P - A!R U (S & !R) W R),Globally:,Before R:,After Q:,Between Q and R:,After Q until R:,CTL:,Examples and Known Uses:,Response properties occur quite commonly in specifications of concurrent systems. Perhaps the most common example is in descri
14、bing a requirement that a resource must be granted after it is requested.,Relationships,Note that a Response property is like a converse of a Precedence property. Precedence says that some cause precedes each effect, and.,Specify Patterns in Bandera,The Bandera Pattern Library is populated by writin
15、g pattern macros:,pattern name = “Response” scope = “Globally” parameters = P, S format = “P leads to S globally” ltl = “(P S)” ctl = “AG(P AF(S)” ,Evaluation,555 TL specs collected from at least 35 different sources 511 (92%) matched one of the patterns Of the matches. Response: 245 (48%) Universality: 119 (23%) Absence: 85 (17%),Questions,Do patterns facilitate the learning of specification formalisms like CTL and LTL? Do patterns allow specifications to be written more quickly? Are the specifications generated from patterns more likely to be correct? Does the use of th
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 安徽省蚌埠市2025-2026学年高二历史上学期期末学业水平监测试题
- 第三方监督巡查投标方案(技术方案)
- 2025年岗巴县社区工作者招聘考试真题及答案
- 护理学题库及详解
- 2026年天津市高三高考二模英语模拟试卷试题(含答案详解)
- 唐山市辅警招聘考试题及答案
- 安徽省江南十校2026届高三5月学业质量检测政治试题
- 呵护心灵健康成长
- 继发性肾上皮质功能不全护理查房
- 2026年金属3D打印零件的弯曲疲劳性能测试与改进
- 临平事业单位招聘笔试真题
- 2026年宁波市镇海区事业单位真题
- 2025年上海市各区高三语文二模古诗文默写汇编(含答案)
- 2026年汕头中考数学模考计算满分真题及答案(含逐题解析)
- 2026年ica国际汉语教师考试试题
- 国企贸易风控制度
- 2026年零碳园区建设资金支持渠道:超长期特别国债与地方政府专项债券申报
- 2026届高考地理备考微专题海南封关
- 胖东来内部规章制度
- (2026年)产科麻醉关键问题与解决方案课件
- 2025至2030教育装备行业国际化发展路径与市场拓展研究报告
评论
0/150
提交评论