Skip to main content
QUICK REVIEW

[Paper Review] Applying Formal Methods Tools to an Electronic Warfare Codebase (Experience report)

Letitia W. Li, Denley Lam|arXiv (Cornell University)|Jan 16, 2026
Software Testing and Debugging TechniquesComputer Science0 citations
TL;DR

The paper catalogs open-source C/C++ formal methods tools, comparing their coverage of EW system vulnerabilities, and reports on usability barriers and integration into a real CI/CD workflow with practical recommendations.

ABSTRACT

While using formal methods offers advantages over unit testing, their steep learning curve can be daunting to developers and can be a major impediment to widespread adoption. To support integration into an industrial software engineering workflow, a tool must provide useful information and must be usable with relatively minimal user effort. In this paper, we discuss our experiences associated with identifying and applying formal methods tools on an electronic warfare (EW) system with stringent safety requirements and present perspectives on formal methods tools from EW software engineers who are proficient in development yet lack formal methods training. In addition to a difference in mindset between formal methods and unit testing approaches, some formal methods tools use terminology or annotations that differ from their target programming language, creating another barrier to adoption. Input/output contracts, objects in memory affected by a function, and loop invariants can be difficult to grasp and use. In addition to usability, our findings include a comparison of vulnerabilities detected by different tools. Finally, we present suggestions for improving formal methods usability including better documentation of capabilities, decreased manual effort, and improved handling of library code.

Motivation & Objective

  • Assess how feasible formal methods are for a safety-critical EW codebase written in C++.
  • Survey open-source C++ verification tools with a formal basis and categorize them by method and usability.
  • Identify which tools address the EW system's vulnerability classes.
  • Evaluate challenges in adopting annotation-based versus static analysis tools in an industrial workflow.
  • Provide actionable recommendations to improve tool usability and integration into development processes.

Proposed method

  • Survey open-source formal methods tools suitable for C/C++ by categorizing their underlying formal methods (e.g., SAT solving, abstract interpretation, Hoare logic).
  • Assess tool usability aspects including required annotations, integration effort, and maintenance status.
  • Apply selected tools to a real EW codebase to evaluate coverage of specified safety properties (memory, threading, parsers).
  • Compare vulnerabilities detected by different tools and analyze false positives and discrepancies.
  • Evaluate CI/CD integration requirements and performance implications.
  • Propose recommendations to improve tool usability, documentation, and handling of library code.
Figure 1 : Vulnerability hierarchy
Figure 1 : Vulnerability hierarchy

Experimental results

Research questions

  • RQ1Which open-source formal methods tools cover the EW codebase's identified vulnerability classes (memory safety, threading, parsing, etc.)?
  • RQ2How usable are these tools for regular developers with limited formal methods training?
  • RQ3What barriers (annotation burden, documentation, library handling) hinder adoption in an industrial workflow, and how can they be mitigated?
  • RQ4How do results from different tools compare in terms of coverage and false positives within the EW context?

Key findings

  • No single tool covers all targeted vulnerabilities; different tools address different classes (memory leaks, overflows, deadlocks, race conditions, etc.).
  • Annotation-based tools offer strong properties verification but require substantial manual annotations, increasing adoption friction.
  • Static analysis tools provide low-effort checks but show varying coverage and inconsistent results across tools, especially for library code.
  • Results can be noisy due to library code and require filtering or assumptions to separate source vs. library issues.
  • Standardizing terminology and improving documentation would simplify tool comparison and adoption.
  • Automating annotation generation could reduce manual effort and improve practicality for engineers.
Figure 2 : CodeChecker UI
Figure 2 : CodeChecker UI

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.