CJAdviser: SMT-based debugging support for ContextJ

S. Uchio, Naoyasu Ubayashi, Yasutaka Kamei
{"title":"CJAdviser: SMT-based debugging support for ContextJ","authors":"S. Uchio, Naoyasu Ubayashi, Yasutaka Kamei","doi":"10.1145/2068736.2068743","DOIUrl":null,"url":null,"abstract":"Context-awareness plays an important role in developing flexible and adaptive software. However, it is not easy to write context-aware programs because context cannot be treated as a module in the traditional programming languages. COP (Context-Oriented Programming) languages such as ContextJ* enable programmers to describe the context-aware behavior elegantly. The primary system behavior can be separated from the context-aware behavior. On the other hand, unfortunately, it becomes difficult to debug the programs due to the complexity of COP execution and the dependence between objects and contexts. To deal with this problem, this paper proposes CJAdviser, SMT-based debugging support for ContextJ*. In CJAdviser, the execution trace of a ContextJ* program is converted to a context dependence graph that can be analyzed by the SMT (Satisfiability Modulo Theories) solver Yices. Using CJAdviser, we can check a variety of object-context dependencies such as \"Do two objects A and B exist in the Context X at the same time?\". In CJAdviser, SMT is applied to not static analysis but dynamic analysis because many context-aware properties are determined at run time.","PeriodicalId":202850,"journal":{"name":"Proceedings of the 3rd ACM International Workshop on Context-Oriented Programming","volume":"91 2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 3rd ACM International Workshop on Context-Oriented Programming","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2068736.2068743","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Context-awareness plays an important role in developing flexible and adaptive software. However, it is not easy to write context-aware programs because context cannot be treated as a module in the traditional programming languages. COP (Context-Oriented Programming) languages such as ContextJ* enable programmers to describe the context-aware behavior elegantly. The primary system behavior can be separated from the context-aware behavior. On the other hand, unfortunately, it becomes difficult to debug the programs due to the complexity of COP execution and the dependence between objects and contexts. To deal with this problem, this paper proposes CJAdviser, SMT-based debugging support for ContextJ*. In CJAdviser, the execution trace of a ContextJ* program is converted to a context dependence graph that can be analyzed by the SMT (Satisfiability Modulo Theories) solver Yices. Using CJAdviser, we can check a variety of object-context dependencies such as "Do two objects A and B exist in the Context X at the same time?". In CJAdviser, SMT is applied to not static analysis but dynamic analysis because many context-aware properties are determined at run time.
cjadvisor:对ContextJ的基于smt的调试支持
上下文感知在开发灵活、适应性强的软件中起着重要的作用。然而,编写上下文感知程序并不容易,因为在传统编程语言中不能将上下文视为模块。COP(面向上下文的编程)语言,如ContextJ*,使程序员能够优雅地描述上下文感知的行为。主要的系统行为可以与上下文感知行为分离。另一方面,不幸的是,由于COP执行的复杂性以及对象和上下文之间的依赖性,使程序调试变得困难。针对这一问题,本文提出了基于smt的ContextJ*的cjadvisor调试支持。在cjadvisor中,ContextJ*程序的执行轨迹被转换为上下文依赖图,该图可以通过SMT(可满足模理论)求解器Yices进行分析。使用cjadvisor,我们可以检查各种对象-上下文依赖关系,例如“两个对象a和B是否同时存在于上下文X中?”在cjadvisor中,SMT不是应用于静态分析,而是应用于动态分析,因为许多上下文感知属性是在运行时确定的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信