Abstract interpretation of microcontroller code: Intervals meet congruences

  • Authors:
  • Jörg Brauer;Andy King;Stefan Kowalewski

  • Affiliations:
  • Embedded Software Laboratory, RWTH Aachen University, Germany and Verified Systems International GmbH, Bremen, Germany;Portcullis Computer Security Limited, Pinner, UK;Embedded Software Laboratory, RWTH Aachen University, Germany

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Bitwise instructions, loops and indirect data access present challenges to the verification of microcontroller programs. In particular, since registers are often memory mapped, it is necessary to show that an indirect store operation does not accidentally mutate a register. To prove this and related properties, this article advocates using the domain of bitwise linear congruences in conjunction with intervals to derive accurate range information. The paper argues that these two domains complement one another when reasoning about microcontroller code. The paper also explains how SAT solving, which applied with dichotomic search, can be used to recover branching conditions from binary code which, in turn, further improves interval analysis.