arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.02679cs.SE
收藏

一种面向特定领域的软件需求约束描述语言

A Domain-Specific Language for Verifying Software Requirement Constraints

Marzina Vidal, Tiago Massoni, Franklin Ramalho

摘要:

软件需求分析当然可以从故障的预防和早期检测中受益,特别是通过某种自动分析。形式化方法提供了用严格的工具来表示和分析需求的方法,避免了歧义,并允许自动验证需求的一致性。然而,形式主义经常在文化中发生冲突,或者缺乏软件分析师的技能,这使得它们难以应用。在这篇文章中,我们提出了一个领域特定的语言(DSL)的基础上集理论的需求分析。图形不变式语言(GIRL)可以用来指定软件需求的结构不变式,实体和它们的关系。然后,这些不变量可以由Alloy Analyzer根据我们提供的映射语义来评估它们的一致性,该映射语义用于将GIRL模型转换为Alloy规范,无需用户干预。一个原型的语言编辑器和转换到Eclipse插件实现,我们进行了定性研究与需求分析师工作的政府软件公司在巴西,评估真实的软件需求的可用性和有效性的GIRL为基础的分析。参与者能够有效地使用底层的形式分析,因为80个分配的不变量中有79个被正确建模。虽然参与者认为学习和使用GIRL的最简单的,基于集合的结构和关系的复杂性低,最复杂的逻辑结构,如量化和含义,是具有挑战性的。此外,几乎所有参与者的研究后评价都是积极的,特别是作为发现需求不一致的工具。

英文摘要:

Software requirement analysis can certainly benefit from prevention and early detection of failures, in particular by some kind of automatic analysis. Formal methods offer means to represent and analyze requirements with rigorous tools, avoiding ambiguities and allowing automatic verification of requirement consistency. However, formalisms often clash in the culture or lack of skills of software analysts, making them challenging to apply. In this article, we propose a Domain-Specific Language (DSL) based on Set Theory for requirement analysts. The Graphical InvaRiant Language (GIRL) can be used to specify software requirement structural invariants, with entities and their relationships. Those invariants can then have their consistency evaluated by the Alloy Analyzer, based on a mapping semantics we provide for transforming GIRL models into Alloy specifications with no user intervention. With a prototypical language editor and transformations implemented into an Eclipse plugin, we carried out a qualitative study with requirement analysts working for a government software company in Brazil, to evaluate usability and effectiveness of the GIRL-based analysis of real software requirements. The participants were able to effectively use the underlying formal analysis, since 79 out of 80 assigned invariants were correctly modeled. While participants perceived as low the complexity of learning and using GIRL's simplest, set-based structures and relationships, the most complex logical structures, such as quantification and implication, were challenging. Furthermore, almost all post-study evaluations from the participants were positive, especially as a tool for discovering requirement inconsistencies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑