首页> 外文会议>International conference on abstract state machines, alloy, B, TLA, VDM, and Z >Solver-Based Sketching of Alloy Models Using Test Valuations
【24h】

Solver-Based Sketching of Alloy Models Using Test Valuations

机译:基于试验估值的基于求解器的合金模型草图

获取原文

摘要

We introduce ASketch, the first framework for sketching models in the Alloy language. The Alloy Analyzer is a SAT-based constraint solver that allows users to create valuations for relations with respect to given constraints and bound on the universe of discourse. Alloy users routinely use the valuations to validate their models: enumerate some valuations and inspect them to detect underconstraints or over-constraints. Our key insight is that valid and invalid valuations enable sketching Alloy models where the user writes a partial model with holes and provides some valuations, and the sketching infrastructure completes the model by synthesizing Alloy fragments for the holes. ASketch offers the following extensions to Alloy: (1) it expands the Alloy grammar, allowing users to write holes in an Alloy model; (2) it can parse regular expressions and automatically generate pools of matching fragments to replace the holes; (3) it includes a solver-based technique that encodes the model with holes, the fragments for each hole, and the expected valuations to a meta-model which completes the holes when solved. Experimental results show that ASketch works well for different Alloy models with various number of holes, providing a promising approach to bring the success of traditional program sketching for imperative and functional programs to declarative, relational logic.
机译:我们介绍ASketch,这是用Alloy语言绘制模型的第一个框架。合金分析器是基于SAT的约束求解器,它使用户可以针对给定约束并在整个讨论范围内为关系创建评估。合金用户通常使用评估来验证其模型:列举一些评估并检查它们以发现约束不足或约束过度。我们的主要见解是,有效和无效的评估都可以绘制合金模型的草图,其中用户编写带有孔的局部模型并提供一些估值,而草图基础结构通过为孔合成合金片段来完善模型。 ASketch对Alloy提供了以下扩展:(1)扩展了Alloy语法,允许用户在Alloy模型中编写孔; (2)可以解析正则表达式,并自动生成匹配的片段池来替换空洞; (3)它包括基于求解器的技术,该技术对带有孔的模型,每个孔的碎片以及对模型的预期评估进行编码,以在求解时完成孔。实验结果表明,ASketch可以很好地适用于具有多个孔的不同Alloy模型,这为将命令式和功能性程序的传统程序草图的成功引入声明性,关系逻辑提供了一种有前途的方法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号