Graph Construction and Matching for Imperative Programs using Neural and Structural Methods

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Software Development & Engineering, Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

A new pipeline for "Graph Construction and Matching for Imperative Programs" converts imperative programs and their annotations into typed, attributed graphs. Developed by Beg, O'Donoghue, and Monahan, this 14-page work, submitted on April 29, 2026, and revised on July 12, 2026 (v3), aims to facilitate the reuse of verification artifacts by identifying structural and semantic similarities across programs and specifications. The pipeline integrates abstract syntax tree parsing with semantic embeddings derived from models like SentenceTransformer and CodeBERT. Experiments, covering datasets such as C with ACSL, Java with JML, and Dafny programs, demonstrate its ability to construct consistent graph representations across different languages and annotation styles. This foundational work provides a practical basis for future semantic enrichment and approximate graph matching, enabling scalable verification artifact reuse.

Key takeaway

For verification engineers aiming to reuse program verification artifacts across different languages, this work offers a clear path. You should consider adopting graph-based representations for imperative programs and their annotations. This approach, using neural and structural methods, enables consistent cross-language analysis, reducing redundant verification efforts. Explore integrating AST parsing with semantic embeddings from models like CodeBERT to build scalable systems for artifact reuse.

Key insights

Converting programs to typed, attributed graphs using neural and structural methods enables scalable reuse of verification artifacts.

Principles

Method

The pipeline converts imperative programs and annotations into typed, attributed graphs by integrating AST parsing with semantic embeddings from models like SentenceTransformer and CodeBERT.

In practice

Topics

Best for: AI Scientist, Research Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.