首页> 外国专利> Logical contingency analysis for domain-specific languages

Logical contingency analysis for domain-specific languages

机译:特定领域语言的逻辑权变分析

摘要

Embodiments relate to validating logical statements in code for domain specific languages. An aspect includes parsing logical statements and annotating constraint type logical statements with specific constraint annotations from the logical grammar of the domain specific language. A non-contradiction graph is built using specific constraint annotations constrained to represent cases satisfying the logical statements and is solved to find a case that satisfies the logical statement or prove that no such case exists, thus locating a contradiction. The non-contradiction graph is negated to form a non-tautology graph constrained to represent cases violating the logical statements and the non-tautology graph is solved to find a case that violates the logical statement or prove that no such case exists, thus locating a tautology. A report is provided regarding at least one case satisfying the logical statement and at least one case violating the logical statement whereby the logical statement is validated.
机译:实施例涉及验证用于领域特定语言的代码中的逻辑语句。一个方面包括解析逻辑语句和使用来自领域特定语言的逻辑语法的特定约束注释来注释约束类型逻辑语句。使用特定的约束注释构建非矛盾图,约束注释表示受逻辑语句约束的情况,并求解该问题以找到满足逻辑语句的情况或证明不存在这种情况,从而找到了矛盾。否定非矛盾图以形成非重言式图,该非重言式图被约束来表示违反逻辑语句的案例,并且解决非重言式图以查找违反逻辑声明的案例或证明不存在此类案例,从而找到重言式。提供关于至少一个满足逻辑语句的情况和至少一个违反逻辑语句的情况的报告,由此验证逻辑语句。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号