Galapagos: Automated N-Version Programming with LLMs
<|reference_start|>Galapagos: Automated N-Version Programming with LLMs: One of the main challenges of N-Version Programming is development cost: it requires paying multiple teams to develop variants of the same system. To address this issue, we propose the automated generation of variants using large language models. We design, develop and evaluate Gal\'apagos: a tool for generating program variants using LLMs, validating their correctness and equivalence, and using them to assemble N-Version binaries. We evaluate Gal\'apagos by creating N-Version components of real-world C code. Our original results show that Gal\'apagos can produce program variants that are proven to be functionally equivalent, even when the variants are written in a different programming language. Our systematic diversity measurement indicate that functionally equivalent variants produced by Gal\'apagos, are statically different after compilation, and present diverging internal behavior at runtime. We demonstrate that the variants produced by Gal\'apagos can protect C code against real miscompilation bugs which affect the Clang compiler. Overall, our paper shows that producing N-Version software can be drastically automated by advanced usage of practical formal verification and generative language models.<|reference_end|>
@article{ron2024galapagos:,
    title={Galapagos: Automated N-Version Programming with LLMs},
    author={Javier Ron, Diogo Gaspar, Javier Cabrera-Arteaga, Benoit Baudry,
  Martin Monperrus},
    journal={arXiv preprint arXiv:2408.09536},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.09536},
    primaryClass={cs.SE}
}