- 3
- 0
- 约4.45千字
- 约 16页
- 2016-08-19 发布于河南
- 举报
Context-sensitive
Join Algorithms for the Theory of Uninterpreted Functions Sumit Gulwani Ashish Tiwari George Necula UC-Berkeley SRI UC-Berkeley Definition: Join in theory T E = JoinT(E1,E2) iff E1 )T E and E2 )T E If (E1 )T g) and (E2 )T g), then E )T g E1, E2, E: conjunction of ground facts in theory T g: ground fact in theory T E is the strongest conjunction of ground facts that is implied by both E1 and E2 in theory T Example of Joins LE: Linear Arithmetic with Equality JoinLE(x=1 ? y=4, x=3 ? y=2) = x+y=5 LI: Linear Arithmetic with Inequalities JoinLI(x=1 ? y=4, x=3 ? y=2) = x+y=5 ? 1·x·3 UF: Uninterpreted Functions JoinUF(x=a ? y=F(a), x=b ? y=F(b)) = y=F(x) Motivation: Program Analysis using Abstract Interpretation Join for Uninterpreted Functions is not easy Join(F(a)=a ? F(b)=b ? G(a)=G(b), a=b) = GFi(a)=GFi(b) The result of join is not finitely representable using standard data-structures like EDAGs Relatively Complete Join: Definition Recall, Join(E1,E2): strongest conjunction of ground facts g s.t. E1 )T g and E2 )T g RCJoin(E1,E2,K): strongest conjunction of ground facts g s.t. E1 )T g and E2 )T g and Terms(g) 2 K Example E1: F(a)=a ? F(b)=b ? G(a)=G(b) E2: a=b K: { GF(a),GF(b) } RCJoin(E1,E2,K): GF(a) = GF(b) Relatively Complete Join: Algorithm RCJoin(E1,E2,K): Let D1=EDAG(E1) and D2=EDAG(E2) Extend D1 and D2 to represent K Congruence close D1 and D2 Let D=product construction of D1 and D2 Output D Step 1: Constructing EDAGs E1: F(a)=a ? F(b)=b ? G(a)=G(b) E2: a=b K: { GF(a),GF(b) } Step 2: Extending EDAGs E1: F(a)=a ? F(b)=b ? G(a)=G(b) E2: a=b K: { GF(a),GF(b) } Step 3: Congruence Closure E1: F(a)=a ? F(b)=b ? G(a)=G(b) E2: a=b K: { GF(a),GF(b) } Step 4: Product Construction (Intuition) E1: F(a)=a ? F(b)=b ? G(a)=G(b) E2: a=b K: { GF(a),GF(b) } Step 4: Product Construction (Algorithm) E1: F(a)=a ? F(b)=b ? G(a)=G(b)
您可能关注的文档
最近下载
- 4人剧本杀古堡奇遇剧本全内容(4人封闭).pdf VIP
- DB65_T 8022-2024 严寒和寒冷地区居住建筑节能设计标准.docx VIP
- 6—1柱脚及网架支座检查记录.doc VIP
- 2025年中国互联网+汽车用品项目创业计划书.docx VIP
- 开发新型有机硅防污涂料及其防腐性能分析.docx VIP
- 医院专科联盟建设经验.pptx VIP
- 广东省广州市海珠区2024-2025学年四年级上册期末考试数学试卷(含答案).docx VIP
- 村镇庙会节庆方案.docx VIP
- 江苏省扬州市2023-2024高二上学期期末物理试卷及答案.pdf VIP
- 蒂森克虏伯电梯 曳引轮钢丝绳安装布置.pptx
原创力文档

文档评论(0)