Affiliation:
1. KIT, Germany
2. University of Waterloo, Canada
Abstract
Type systems and modern type checkers can be used very successfully to obtain formal correctness guarantees with little specification overhead. However, type systems in practical scenarios have to trade precision for decidability and scalability. Tools for deductive verification, on the other hand, can prove general properties in more cases than a typical type checker can, but they do not scale well. We present a method to complement the scalability of expressive type systems with the precision of deductive program verification approaches. This is achieved by translating the type uses whose correctness the type checker cannot prove into assertions in a specification language, which can be dealt with by a deductive verification tool. Type uses whose correctness the type checker can prove are instead turned into assumptions to aid the verification tool in finding a proof.Our novel approach is introduced both conceptually for a simple imperative language, and practically by a concrete implementation for the Java programming language. The usefulness and power of our approach has been evaluated by discharging known false positives from a real-world program and by a small case study.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference39 articles.
1. Deductive Software Verification – The KeY Book
2. Interactive Theorem Proving and Program Development
3. Idris, a general-purpose dependently typed programming language: Design and implementation
4. Checker Framework developers. 2020. Checker Framework Manual. https://checkerframework.org/manual/ Version 3.3.0. Checker Framework developers. 2020. Checker Framework Manual. https://checkerframework.org/manual/ Version 3.3.0.
Cited by
3 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. OppropBERL: A GNN and BERT-Style Reinforcement Learning-Based Type Inference;2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2024-03-12
2. Scalable and Precise Refinement Types for Imperative Languages;iFM 2023;2023-11-06
3. The Karlsruhe Java Verification Suite;The Logic of Software. A Tasting Menu of Formal Methods;2022