用于Erlang程序检错的有界符号执行
Bounded Symbolic Execution for Runtime Error Detection of Erlang Programs
摘要:
动态类型语言,如Erlang,允许开发人员快速编写程序,而无需显式提供表达式或函数定义的任何类型信息。然而,这个特性使得这些语言比静态类型语言更不可靠,因为静态类型语言中的许多运行时错误可以在编译时检测到。在本文中,我们提出了一个工具,通过使用著名的元编程和符号执行技术,可以用来执行有界验证的Erlang程序的初步工作。特别是,通过使用约束逻辑编程,我们开发了一个解释器,给出了一个Erlang程序和该程序的符号输入,返回回答约束,表示Erlang程序生成运行时错误的具体数据集。
英文摘要:
Dynamically typed languages, like Erlang, allow developers to quickly write programs without explicitly providing any type information on expressions or function definitions. However, this feature makes those languages less reliable than statically typed languages, where many runtime errors can be detected at compile time. In this paper, we present a preliminary work on a tool that, by using the well-known techniques of metaprogramming and symbolic execution, can be used to perform bounded verification of Erlang programs. In particular, by using Constraint Logic Programming, we develop an interpreter that, given an Erlang program and a symbolic input for that program, returns answer constraints that represent sets of concrete data for which the Erlang program generates a runtime error.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。