NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Verification of code generators via higher-order model checking

Takashi Suwa, Takeshi Tsukada, Naoki Kobayashi, Atsushi IgarashiPEPM 2017

Abstract

Dynamic code generation is useful for optimizing code with respect to information available only at run-time. Writing a code generator is, however, difficult and error prone. We consider a simple language for writing code generators and propose an automated method for verifying code generators. Our method is based on higher-order model checking, and can check that a given code generator can generate only closed, well-typed programs. Compared with typed multi-stage programming languages, our approach is less conservative on the typability of generated programs (i.e., can accept valid code generators that would be rejected by typical multi-stage languages) and can check a wider range of properties of code generators. We have implemented the proposed method and confirmed its effectiveness through experiments.
BibTeX
@inproceedings{suwa2017verification,
  author = {Takashi Suwa and Takeshi Tsukada and Naoki Kobayashi and Atsushi Igarashi},
  title = {{Verification of code generators via higher-order model checking}},
  booktitle = {PEPM},
  year = {2017},
  url = {https://openreview.net/forum?id=mgr2TybEoZ},
}

Loading related content...

Figure