Reasoning About Recursive Tree Traversals

10/21/2019
by   Yanjun Wang, et al.
0

Traversals are commonly seen in tree data structures, and performance-enhancing transformations between tree traversals are critical for many applications. Existing approaches to reasoning about tree traversals and their transformations are ad hoc, with various limitations on the class of traversals they can handle, the granularity of dependence analysis, and the types of possible transformations. We propose Retreet, a framework in which one can describe general recursive tree traversals, precisely represent iterations, schedules and dependences, and automatically check data-race-freeness and transformation correctness. The crux of the framework is a stack-based representation for iterations and an encoding to Monadic Second-Order (MSO) logic over trees. Experiments show that our framework can reason about traversals with sophisticated mutual recursion on real-world data structures such as CSS and cycletrees.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/18/2023

On Random Tree Structures, Their Entropy, and Compression

Measuring the complexity of tree structures can be beneficial in areas t...
research
07/26/2021

Overview of Bachelors Theses 2021

In this work, we review Bachelors Theses done under the supervision of V...
research
02/16/2015

Rewriting Higher-Order Stack Trees

Higher-order pushdown systems and ground tree rewriting systems can be s...
research
08/23/2022

Exchangeable Laws in Borel Data Structures

Motivated by statistical practice, category theory terminology is used t...
research
01/27/2020

Understanding Profunctor Optics: a representation theorem

Optics, aka functional references, are classes of tools that allow compo...
research
06/15/2022

Searching Entangled Program Spaces

Many problem domains, including program synthesis and rewrite-based opti...
research
04/24/2018

Solving Horn Clauses on Inductive Data Types Without Induction

We address the problem of verifying the satisfiability of Constrained Ho...

Please sign up or login with your details

Forgot password? Click here to reset