计算机科学 > 程序设计语言
[提交于 2025年1月15日]
标题:Towards Semantics Lifting for Scientific Computing: A Case Study on FFT
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The rise of automated code generation tools, such as large language models (LLMs), has introduced new challenges in ensuring the correctness and efficiency of scientific software, particularly in complex kernels, where numerical stability, domain-specific optimizations, and precise floating-point arithmetic are critical. We propose a stepwise semantics lifting approach using an extended SPIRAL framework with symbolic execution and theorem proving to statically derive high-level code semantics from LLM-generated kernels. This method establishes a structured path for verifying the source code's correctness via a step-by-step lifting procedure to high-level specification. We conducted preliminary tests on the feasibility of this approach by successfully lifting GPT-generated fast Fourier transform code to high-level specifications.
提交历史
来自:Naifeng Zhang[v1] 2025年1月15日 星期三 23:24:32 UTC