Specification and Inference of Trace Refinement Relations

03/18/2019
by   Timos Antonopoulos, et al.
0

Modern software is constantly changing. Researchers and practitioners are increasingly aware that verification tools can be impactful if they embrace change through analyses that are compositional and span program versions. Reasoning about similarities and differences between programs goes back to Benton, who introduced state-based refinement relations, which were extended by Yang and others. However, to our knowledge, refinement relations have not been explored for traces. We present a novel theory that allows one to perform compositional reasoning about the similarities/differences between how fragments of two different programs behave over time through the use of what we call trace-refinement relations. We take a reactive view of programs and found Kleene Algebra with Tests (KAT) [Kozen] to be a natural choice to describe traces since it permits algebraic reasoning and has built-in composition. Our theory involves a two-step semantic abstraction from programs to KAT, and then our trace refinement relations correlate behaviors by (i) categorizing program behaviors into trace classes through KAT intersection and (ii) correlating atomic events/conditions across programs with KAT hypotheses. We next describe a synthesis algorithm that iteratively constructs trace-refinement relations between two programs by exploring sub-partitions of their traces, iteratively abstracting them as KAT expressions, discovering relationships through a custom edit-distance algorithm, and applying strategies (i) and (ii) above. We have implemented this algorithm as knotical, the first tool capable of synthesizing trace-refinement relations. It built from the ground up in Ocaml, using InterProc and SymKAT. We have demonstrated that useful relations can be efficiently generated across a suite of 37 benchmarks that include changing fragments of array programs, systems code, and web servers.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/23/2017

The Refinement Calculus of Reactive Systems Toolset

We present the Refinement Calculus of Reactive Systems Toolset, an envir...
research
06/06/2018

Calculational Verification of Reactive Programs with Reactive Relations and Kleene Algebra

Reactive programs are ubiquitous in modern applications, and thus verifi...
research
07/28/2022

Trace Refinement in B and Event-B

Traces are used to show whether a model complies with the intended behav...
research
04/23/2020

BOLD: An Ontology-based Log Debugger for C Programs

The different activities related to debugging such as program instrument...
research
07/21/2020

Verification and Parameter Synthesis for Real-Time Programs using Refinement of Trace Abstraction

We address the safety verification and synthesis problems for real-time ...
research
04/22/2019

Translating between models of concurrency

Hoare's Communicating Sequential Processes (CSP) admits a rich universe ...
research
09/04/2021

Direct Construction of Program Alignment Automata for Equivalence Checking

The problem of checking whether two programs are semantically equivalent...

Please sign up or login with your details

Forgot password? Click here to reset