WeSearch

Semantic Reification: A New Paradigm for Random Program Generation

·1 min read · 0 reactions · 0 comments · 4 views
#programming#software#compilers
Semantic Reification: A New Paradigm for Random Program Generation
⚡ TL;DR · AI summary

Semantic reification is a new approach to random program generation that focuses on program semantics instead of syntax. It captures both compile-time and runtime semantics to ensure generated programs are well-behaved and produce expected outputs. The implementation, called Reify, has successfully identified numerous bugs in existing compilers, highlighting its potential for broader applications in software validation.

Key facts
Original article
Sigplan
Read full at Sigplan →
Opening excerpt (first ~120 words) tap to expand

We introduce semantic reification, a novel paradigm for random program generation that centers on program semantics rather than syntax. Our key insight is to reformulate random program generation to capture two types of program semantics: (1) compile-time semantics (what a program can do), represented by the control flow graph (CFG), and (2) runtime semantics (what a program actually does), represented by execution paths within the CFG. For any CFG and any execution path on it, semantic reification constructs a program guaranteed to be well-behaved with respect to a specific input and output. This means that when executed with this input, the program deterministically follows the designated execution path to produce the expected output.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Sigplan.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Sigplan