AF191-064.pdf

PDF 47 KB Posted

Attached to
Formal Methods for Automated Unit Testing
Solicitation number
AF191-064
Issued by

View the file

On GovTribe

Work with this file

  • Download the original file
  • Contacts named in this file
  • Similar government files
  • Ask GovTribe AI about this file

Text version

AF191-064: Formal Methods for Automated Unit Testing

PROJECTED CMMC LEVEL REQUIREMENT:

N/A

TECHNOLOGY AREAS:

Information Systems

MODERNIZATION PRIORITIES:

KEYWORDS:

formal verification, software development, software testing, automated testing

ADDITIONAL INFORMATION

OBJECTIVE:

Investigate the ability to replace unit testing with formal methods based testing. Develop an Integrated Development Environment (IDE) where developers can specify unit tests as formal requirements, the requirements are automatically verified and/or tested, and the results presented back to the developer.

DESCRIPTION:

Recent advances in formal methods have demonstrated that they scale to the size of microkernels [1, 2], however the formal proof systems still require significant training and expertise to operate. The toolsets are not yet ready for wide adoption by the vast majority of software developers with little to no formal background. However, the situation is expected to improve as research continues. This is especially true for research in satisfiability based formal verification where open source Z3 [3] Theorem Prover (https://github.com/Z3Prover/z3) has just recently received IEEE 754 floating point support. This topic seeks innovative technologies that can integrate the current breed of formal methods tools to automatically perform software testing for software developers. In an effort to focus innovation on ensuring that the final Phase III tool will be useful for normal everyday developers rather than more advanced formal methods tools, this topic includes three main focus areas. First, the resulting solution must be capable of automatically translating source code blocks (e.g., C) into a formal specification (e.g., an SMT formula) so that the everyday developer does not need to understand the formal specification language. Second, the solution should allow the developer to write formal specifications (such as those for unit tests) in a natural way. Third, the solution should automatically verify whether the code block satisfies the specification or whether the specification holds true. Results are presented back to the everyday developer in a familiar way. For example, this process can be seen as being similar to compilation.

PHASE I:

Discuss the design space and trade-off decisions. Identify the target source language as well as formal specification language. Develop an IDE mockup and develop a proof of concept IDE. The proof of concept should focus on the second focus area and demonstrate that unit tests can be written in a natural way and then automatically converted into the chosen formal specification language. Demonstrate that the automatically converted specification can be integrated with and verified using a sample source code block that was hand-translated into the specification language. In other words, the first and third focus areas can be completed manually.

PHASE II:

Fully develop the technology and demonstrate the ability to perform automated unit testing using formal methods based approaches. This will include fully automating the first and third focus areas as well as improving the sophistication of the automatic specification translation tool. Integrate the new automated testing capability with Continuous Integration/Continuous Testing frameworks.

PHASE III DUAL USE APPLICATIONS:

Integrate with interested USAF developers. DUAL USE APPLICATIONS: The resulting toolsets are suitable for use by everyday developers in both government and commercial industry.

REFERENCES:

L. De Moura and N. Bjørner. Z3: An efficient SMT solver. In International conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer, 337–340, 2008.

1.

R. Gu, Z. Shao, H. Chen, X. Wu, J. Kim, V. Sjöberg, and D. Costanzo. CertiKOS: An Extensible Architecture for Building Certified Concurrent OS Kernels In Proc. 2016 USENIX Symposium on Operating Systems Design and Implementation (OSDI'16), GA, pages 65

2.

G. Klein, K. Elphinstone, G. Heiser, J. Andronick, D. Cock, P. Derrin, D. Elkaduwe, K. Engelhardt, R. Kolanski, M. Norrish, T. Sewell, H. Tuch, and S.Winwood. sel4: Formal verification of an os kernel. In Proceedings of ACM Symposium on Operating Syste

3.

TECHNICAL POINT OF CONTACT (TPOC):

None

File details come from the government source that posted it. Updated .