arrow
Return

TC-Verifier: Trans-Compiler-Based Code Translator Verifier with Model-Checking

delete2025-08-22
delete0
PRE
AI
A
Amira T. Mahmoud
W
Walaa Medhat
S
Sahar Selim
H
Hala Zayed
A
Ahmed H. Yousef
N
Nahla Elaraby *
DOI:10.3390-asi8030060delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code-to-code translation, a critical domain in software engineering, increasingly utilizes trans-compilers to translate between high-level languages. Traditionally, the fidelity of such translations has been evaluated using the BLEU score, which predominantly measures token similarity between the generated output and the ground truth. However, this metric falls short of assessing the methodologies underlying the translation processes and only evaluates the translations that are tested. To bridge this gap, this paper introduces an innovative architecture, “TC-Verifier”, to formally employ the Uppaal Model-checker to verify trans-compiler-based code translators. We applied the proposed architecture to a trans-compiler translating between Swift and Java, providing insights into the verified and unverified aspects of the translation process. Our findings illuminate the strengths and limitations of using Model-checking for formal verification in code translation. Notably, the examined trans-compiler reached a verification success rate of 50.74% for the grammar rules and productions modeled. This study underscores the gaps in trans-compiler-based translations and suggests that these gaps could potentially be addressed by integrating Large Language Models (LLMs) in future work.
Keywords:
code-to-code translation
trans-compiler
formal verification
Uppaal Model-checker
BLEU score

Journal

Applied System Innovation cover
Applied System Innovation
IF:
3.7
Papers:
977
Citations:
1.9K

Organization

N
Nile University
Scholars:
350
Papers: 298
Citations: 5
B
benha university
Scholars:
3.0K
Papers: 2.5K
Citations: 8
T
Technical University of Vienna
Scholars:
4
Papers: 4
Citations: 0
E
El Sewedy University of Technology
Scholars:
5
Papers: 5
Citations: 0
researcher View more organizations
Cited Papers

Cited Papers

Developing UPPAAL over 15 years
err2011-01-23
err0
PREAI
errGerd Behrmann; Alexandre David; Kim Guldstrand Larsen; Paul Pettersson; Wang Yi
errShare
errSave
Formal Verification in Model Based Development
err2015-04-14
err0
PREAI
errAshlie B. Hocking; John C. Knight; M. Anthony Aiello; Shin'ichi Shiraishi
errShare
errSave
errShare
errSave
Mutation analysis for evaluating code translation
err2023-12-06
err1
errOAAI
errGuizzo, Giovani; Zhang, Jie M.; Sarro, Federica; Treude, Christoph; Harman, Mark
errShare
errSave
researcher View more