Skip to main content

Trabalho em anais de eventoOpen Access

ESBMC-Python: A Bounded Model Checker for Python Programs

FARIAS, B. C.; MENEZES, R.; Lima Filho, E. B.; SUN, Y.; CORDEIRO, L. C

2024 • The ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) • 10 citações

Resumo

Resumo

This paper introduces a tool for verifying Python programs, which, using type annotation and front-end processing, can harness the capabilities of a bounded model-checking (BMC) pipeline. It transforms an input program into an abstract syntax tree to infer and add type information. Then, it translates Python expressions and statements into an intermediate representation. Finally, it converts this description into formulae evaluated with satisfiability modulo theories (SMT) solvers. The proposed approach was realized with the efficient SMT-based bounded model checker (ESBMC), which resulted in a tool called ESBMC-Python, the first BMC-based Python-code verifier. Experimental results, with a test suite specifically developed for this purpose, showed its effectiveness, where successful and failed tests were correctly evaluated. Moreover, it found a real problem in the Ethereum Consensus Specification.

palavras-chave

Palavras-chave

bounded model checkingtype annotationsabstract syntax treeintermediate representationSMT solversprogram verification

Status

Published

links

Trabalho em anais de evento